summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2008-02-01 17:35:50 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2008-02-01 17:35:50 (GMT)
commit15741325e0393ec7a97212cf59efc3d3036c9d7d (patch)
tree4b7f0722031330ae25a7695ca3c1aaa03700912f /Source
parentd94087ab44fcef17f82b587b540193eb98e9e5bb (diff)
downloadCMake-15741325e0393ec7a97212cf59efc3d3036c9d7d.zip
CMake-15741325e0393ec7a97212cf59efc3d3036c9d7d.tar.gz
CMake-15741325e0393ec7a97212cf59efc3d3036c9d7d.tar.bz2
ENH: fix warnings
Diffstat (limited to 'Source')
-rw-r--r--Source/kwsys/SystemInformation.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/kwsys/SystemInformation.cxx b/Source/kwsys/SystemInformation.cxx
index ec962e8..3b9f41a 100644
--- a/Source/kwsys/SystemInformation.cxx
+++ b/Source/kwsys/SystemInformation.cxx
@@ -2210,7 +2210,7 @@ int SystemInformationImplementation::RetreiveInformationFromCpuInfoFile()
// 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 @@ kwsys_stl::string SystemInformationImplementation::ParseValueFromKStat(const cha
// Remove the quotes if any
size_t quotes = arg.find('"');
- while(quotes != -1)
+ while(quotes != arg.npos)
{
arg.erase(quotes,1);
quotes = arg.find('"');