From c30e7771ee3678adad173903458d71972d77c1e7 Mon Sep 17 00:00:00 2001 From: Ken Martin Date: Tue, 14 Sep 2004 11:48:34 -0400 Subject: [PATCH] ERR: Fix borland build --- Source/kwsys/CommandLineArguments.cxx | 12 ++++++++++++ Source/kwsys/CommandLineArguments.hxx.in | 1 + 2 files changed, 13 insertions(+) diff --git a/Source/kwsys/CommandLineArguments.cxx b/Source/kwsys/CommandLineArguments.cxx index d374ad645..334c14399 100644 --- a/Source/kwsys/CommandLineArguments.cxx +++ b/Source/kwsys/CommandLineArguments.cxx @@ -101,6 +101,18 @@ void CommandLineArguments::Initialize(int argc, const char* const argv[]) } } +//---------------------------------------------------------------------------- +void CommandLineArguments::Initialize(int argc, char* argv[]) +{ + int cc; + + this->Initialize(); + for ( cc = 1; cc < argc; cc ++ ) + { + this->ProcessArgument(argv[cc]); + } +} + //---------------------------------------------------------------------------- void CommandLineArguments::Initialize() { diff --git a/Source/kwsys/CommandLineArguments.hxx.in b/Source/kwsys/CommandLineArguments.hxx.in index 70ef2d304..667151680 100644 --- a/Source/kwsys/CommandLineArguments.hxx.in +++ b/Source/kwsys/CommandLineArguments.hxx.in @@ -86,6 +86,7 @@ public: * Initialize internal data structures. This should be called before parsing. */ void Initialize(int argc, const char* const argv[]); + void Initialize(int argc, char* argv[]); /** * Initialize internal data structure and pass arguments one by one. This is