Przeglądaj źródła

ENH: CheckOptions now takes const argv.

Brad King 22 lat temu
rodzic
commit
fde552ea6e
2 zmienionych plików z 2 dodań i 2 usunięć
  1. 1 1
      Source/cmDocumentation.cxx
  2. 1 1
      Source/cmDocumentation.h

+ 1 - 1
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)

+ 1 - 1
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