diff options
-rw-r--r-- | base/command_line.cc | 6 | ||||
-rw-r--r-- | 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_; |