summaryrefslogtreecommitdiffstats
path: root/base/command_line.h
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.h
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.h')
-rw-r--r--base/command_line.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/base/command_line.h b/base/command_line.h
index 72cf8c9..f4f3843 100644
--- a/base/command_line.h
+++ b/base/command_line.h
@@ -55,7 +55,7 @@ class CommandLine {
// The program name is assumed to be the first item in the string.
CommandLine(const std::wstring& command_line);
#elif defined(OS_POSIX)
- CommandLine(int argc, char** argv);
+ CommandLine(int argc, const char* const* argv);
#endif
~CommandLine();
@@ -64,7 +64,7 @@ class CommandLine {
// any members of this class.
// On Windows, this call is a no-op (we instead parse GetCommandLineW()
// directly) because we don't trust the CRT's parsing of the command line.
- static void SetArgcArgv(int argc, char** argv);
+ static void SetArgcArgv(int argc, const char* const* argv);
// Returns true if this command line contains the given switch.
// (Switch names are case-insensitive.)