summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2003-07-23 21:27:34 (GMT)
committerBrad King <brad.king@kitware.com>2003-07-23 21:27:34 (GMT)
commitfde552ea6e43b9950029883076377f750bd60ce7 (patch)
tree24a214774317b943a68fa930736856dc66979a9e
parent6f1a0440184e040c7ed0d21cd8e5f46b6177df3e (diff)
downloadCMake-fde552ea6e43b9950029883076377f750bd60ce7.zip
CMake-fde552ea6e43b9950029883076377f750bd60ce7.tar.gz
CMake-fde552ea6e43b9950029883076377f750bd60ce7.tar.bz2
ENH: CheckOptions now takes const argv.
-rw-r--r--Source/cmDocumentation.cxx2
-rw-r--r--Source/cmDocumentation.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmDocumentation.cxx b/Source/cmDocumentation.cxx
index 1571406..ec0018f 100644
--- a/Source/cmDocumentation.cxx
+++ b/Source/cmDocumentation.cxx
@@ -222,7 +222,7 @@ bool cmDocumentation::PrintRequestedDocumentation(std::ostream& os)
}
//----------------------------------------------------------------------------
-bool cmDocumentation::CheckOptions(int argc, char** argv)
+bool cmDocumentation::CheckOptions(int argc, const char* const* argv)
{
// Providing zero arguments gives usage information.
if(argc == 1)
diff --git a/Source/cmDocumentation.h b/Source/cmDocumentation.h
index ddfbb44..276f920 100644
--- a/Source/cmDocumentation.h
+++ b/Source/cmDocumentation.h
@@ -36,7 +36,7 @@ public:
* When true is returned, PrintRequestedDocumentation should be
* called.
*/
- bool CheckOptions(int argc, char** argv);
+ bool CheckOptions(int argc, const char* const* argv);
/**
* Print help requested on the command line. Call after