summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2004-09-14 14:34:10 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2004-09-14 14:34:10 (GMT)
commit73ddc9459f6977aadaaaf23d6afde8920767eabc (patch)
tree911056a5a5672342aba2a53dd5a6724995e54e40
parentd3855438656484207b3d28b3b65b623c8f9e5a00 (diff)
downloadCMake-73ddc9459f6977aadaaaf23d6afde8920767eabc.zip
CMake-73ddc9459f6977aadaaaf23d6afde8920767eabc.tar.gz
CMake-73ddc9459f6977aadaaaf23d6afde8920767eabc.tar.bz2
ENH: Use const correctness for arguments
-rw-r--r--Source/kwsys/CommandLineArguments.cxx2
-rw-r--r--Source/kwsys/CommandLineArguments.hxx.in2
2 files changed, 2 insertions, 2 deletions
diff --git a/Source/kwsys/CommandLineArguments.cxx b/Source/kwsys/CommandLineArguments.cxx
index 909c33f..0eca02a 100644
--- a/Source/kwsys/CommandLineArguments.cxx
+++ b/Source/kwsys/CommandLineArguments.cxx
@@ -89,7 +89,7 @@ CommandLineArguments::~CommandLineArguments()
}
//----------------------------------------------------------------------------
-void CommandLineArguments::Initialize(int argc, char* argv[])
+void CommandLineArguments::Initialize(int argc, const char* const argv[])
{
int cc;
diff --git a/Source/kwsys/CommandLineArguments.hxx.in b/Source/kwsys/CommandLineArguments.hxx.in
index f4893b5..70ef2d3 100644
--- a/Source/kwsys/CommandLineArguments.hxx.in
+++ b/Source/kwsys/CommandLineArguments.hxx.in
@@ -85,7 +85,7 @@ public:
/**
* Initialize internal data structures. This should be called before parsing.
*/
- void Initialize(int argc, char* argv[]);
+ void Initialize(int argc, const char* const argv[]);
/**
* Initialize internal data structure and pass arguments one by one. This is