From acbeb3d6a2bc239b29170629adf8fc217822a0d2 Mon Sep 17 00:00:00 2001 From: "msw@chromium.org" Date: Tue, 1 Mar 2011 20:47:58 +0000 Subject: 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 --- base/command_line.cc | 6 ++++++ base/command_line.h | 6 ++++-- 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_; -- cgit v1.1