summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormsw@chromium.org <msw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-01 20:47:58 +0000
committermsw@chromium.org <msw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-01 20:47:58 +0000
commitacbeb3d6a2bc239b29170629adf8fc217822a0d2 (patch)
treef5c357b074dc357fae62cd39f674875e38ef33e3
parent6d1a70663dcd74c9ac684f51cac6eb26c51ca6ed (diff)
downloadchromium_src-acbeb3d6a2bc239b29170629adf8fc217822a0d2.zip
chromium_src-acbeb3d6a2bc239b29170629adf8fc217822a0d2.tar.gz
chromium_src-acbeb3d6a2bc239b29170629adf8fc217822a0d2.tar.bz2
Out-of-line default Commandline ctor and provide dtor.
BUG=73195 TEST=none Review URL: http://codereview.chromium.org/6588087 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@76419 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r--base/command_line.cc6
-rw-r--r--base/command_line.h6
2 files changed, 10 insertions, 2 deletions
diff --git a/base/command_line.cc b/base/command_line.cc
index eefd6ac..fcb2294 100644
--- a/base/command_line.cc
+++ b/base/command_line.cc
@@ -161,6 +161,9 @@ CommandLine::CommandLine(const StringVector& argv) {
}
#endif // OS_POSIX
+CommandLine::~CommandLine() {
+}
+
// static
void CommandLine::Init(int argc, const char* const* argv) {
delete current_process_commandline_;
@@ -480,3 +483,6 @@ void CommandLine::ParseFromString(const std::wstring& command_line) {
LocalFree(args);
}
#endif
+
+CommandLine::CommandLine() {
+}
diff --git a/base/command_line.h b/base/command_line.h
index a6313ee..7ff5ab0 100644
--- a/base/command_line.h
+++ b/base/command_line.h
@@ -49,6 +49,8 @@ class CommandLine {
explicit CommandLine(const StringVector& argv);
#endif
+ ~CommandLine();
+
// Initialize the current process CommandLine singleton. On Windows, ignores
// its arguments (we instead parse GetCommandLineW() directly) because we
// don't trust the CRT's parsing of the command line, but it still must be
@@ -147,8 +149,8 @@ class CommandLine {
#endif
private:
- // Disallow default constructor; a program name must be explicitly specified.
- CommandLine() {}
+ // Disallow public default construction; a program name must be specified.
+ CommandLine();
// The singleton CommandLine representing the current process's command line.
static CommandLine* current_process_commandline_;