summaryrefslogtreecommitdiffstats
path: root/Source/cmCTest.cxx
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2003-05-28 13:21:37 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2003-05-28 13:21:37 (GMT)
commit8cb6645ad8779c7066a9a31907004506b595aab2 (patch)
tree0fb33f0cf62d41c4532068d38b96600d2a10474a /Source/cmCTest.cxx
parent64db4e2cd8706ea91a8598145cff5d7607e3bfd2 (diff)
downloadCMake-8cb6645ad8779c7066a9a31907004506b595aab2.zip
CMake-8cb6645ad8779c7066a9a31907004506b595aab2.tar.gz
CMake-8cb6645ad8779c7066a9a31907004506b595aab2.tar.bz2
Remove some borland 6 warnings
Diffstat (limited to 'Source/cmCTest.cxx')
-rw-r--r--Source/cmCTest.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/Source/cmCTest.cxx b/Source/cmCTest.cxx
index 1b5c8e6..fe18573 100644
--- a/Source/cmCTest.cxx
+++ b/Source/cmCTest.cxx
@@ -170,10 +170,9 @@ static const char* cmCTestWarningExceptions[] = {
std::string cmCTest::MakeXMLSafe(const std::string& str)
{
- std::string::size_type pos = 0;
cmOStringStream ost;
char buffer[10];
- for ( pos = 0; pos < str.size(); pos ++ )
+ for (std::string::size_type pos = 0; pos < str.size(); pos ++ )
{
unsigned char ch = str[pos];
if ( (ch > 126 || ch < 32) && ch != 9 && ch != 10 && ch != 13 )