summaryrefslogtreecommitdiffstats
path: root/base/command_line.cc
diff options
context:
space:
mode:
authortc@google.com <tc@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-08-14 22:09:39 +0000
committertc@google.com <tc@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-08-14 22:09:39 +0000
commite63d59867890b09ccac706b3bc99ec69efd261c1 (patch)
tree01327ba09f7693c310cd737d6bb9b061718d31af /base/command_line.cc
parent51077acd7f613ca7bc38d61ad1d22be2233a6e15 (diff)
downloadchromium_src-e63d59867890b09ccac706b3bc99ec69efd261c1.zip
chromium_src-e63d59867890b09ccac706b3bc99ec69efd261c1.tar.gz
chromium_src-e63d59867890b09ccac706b3bc99ec69efd261c1.tar.bz2
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
Diffstat (limited to 'base/command_line.cc')
-rw-r--r--base/command_line.cc8
1 files changed, 4 insertions, 4 deletions
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<Data>::get()->Init(argc, argv);
#endif