From e63d59867890b09ccac706b3bc99ec69efd261c1 Mon Sep 17 00:00:00 2001 From: "tc@google.com" Date: Thu, 14 Aug 2008 22:09:39 +0000 Subject: Add command_line_unittest and pr_time_test to the linux set of unittests. Fix the const-ness of argv in CommandLine on posix. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@901 0039d316-1c4b-4281-b951-d872f2087c98 --- base/command_line.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'base/command_line.cc') diff --git a/base/command_line.cc b/base/command_line.cc index 4346268..8849149 100644 --- a/base/command_line.cc +++ b/base/command_line.cc @@ -91,7 +91,7 @@ class CommandLine::Data { Init(command_line); } #elif defined(OS_POSIX) - Data(int argc, char** argv) { + Data(int argc, const char* const* argv) { Init(argc, argv); } #endif @@ -131,7 +131,7 @@ class CommandLine::Data { #elif defined(OS_POSIX) // Does the actual parsing of the command line. - void Init(int argc, char** argv) { + void Init(int argc, const char* const* argv) { if (argc < 1) return; program_ = base::SysNativeMBToWide(argv[0]); @@ -225,7 +225,7 @@ CommandLine::CommandLine(const wstring& command_line) data_(new Data(command_line)) { } #elif defined(OS_POSIX) -CommandLine::CommandLine(const int argc, char** argv) +CommandLine::CommandLine(const int argc, const char* const* argv) : we_own_data_(true), data_(new Data(argc, argv)) { } @@ -237,7 +237,7 @@ CommandLine::~CommandLine() { } // static -void CommandLine::SetArgcArgv(int argc, char** argv) { +void CommandLine::SetArgcArgv(int argc, const char* const* argv) { #if !defined(OS_WIN) Singleton::get()->Init(argc, argv); #endif -- cgit v1.1