[cmake-commits] hoffman committed SystemInformation.cxx 1.18 1.19

cmake-commits at cmake.org cmake-commits at cmake.org
Fri Feb 1 12:35:52 EST 2008


Update of /cvsroot/CMake/CMake/Source/kwsys
In directory public:/mounts/ram/cvs-serv13190/Source/kwsys

Modified Files:
	SystemInformation.cxx 
Log Message:
ENH: fix warnings


Index: SystemInformation.cxx
===================================================================
RCS file: /cvsroot/CMake/CMake/Source/kwsys/SystemInformation.cxx,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -d -r1.18 -r1.19
--- SystemInformation.cxx	1 Feb 2008 16:40:55 -0000	1.18
+++ SystemInformation.cxx	1 Feb 2008 17:35:50 -0000	1.19
@@ -2210,7 +2210,7 @@
   // L1 Cache size
   kwsys_stl::string cacheSize = this->ExtractValueFromCpuInfoFile(buffer,"cache size");
   pos = cacheSize.find(" KB");
-  if(pos!=-1)
+  if(pos!=cacheSize.npos)
     {
     cacheSize = cacheSize.substr(0,pos);
     }
@@ -2834,7 +2834,7 @@
 
       // Remove the quotes if any
       size_t quotes = arg.find('"');
-      while(quotes != -1)
+      while(quotes != arg.npos)
         {
         arg.erase(quotes,1);
         quotes = arg.find('"');



More information about the Cmake-commits mailing list