diff --git a/Source/kwsys/CommandLineArguments.cxx b/Source/kwsys/CommandLineArguments.cxx index 909c33f2d..0eca02af2 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 f4893b544..70ef2d304 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