summaryrefslogtreecommitdiff
path: root/src/cppunit
diff options
context:
space:
mode:
authorBaptiste Lepilleur <gaiacrtn@free.fr>2003-03-15 07:55:29 +0000
committerBaptiste Lepilleur <gaiacrtn@free.fr>2003-03-15 07:55:29 +0000
commit3ffdb56a3c368b8b9c227e4ad2e1e0cbc2c494f3 (patch)
tree1019aa01a2632535be2efa91738338eceebb61dc /src/cppunit
parent97bf50c5b400b6304511286580c8ee160629a8a5 (diff)
downloadcppunit-3ffdb56a3c368b8b9c227e4ad2e1e0cbc2c494f3.tar.gz
Src/cppunit/CompilerOutputter.
src/cppunit/CompilerOutputter.cpp: * src/cppunit/ProtectorChain.cpp: * src/cppunit/StringTools.cpp: * src/cppunit/TestPath.cpp: * src/cppunit/TypeInfoHelper.cpp: * src/cppunit/XmlElement.cpp: * src/cppunit/XmlOutputter.cpp: switched to using unsigned index in loop to avoid signed/unsigned warning in vc7. * include/cppunit/extension/ExceptionTestCaseDecorator.h: removed dll export on template (caused link error on vc7).
Diffstat (limited to 'src/cppunit')
-rw-r--r--src/cppunit/CompilerOutputter.cpp2
-rw-r--r--src/cppunit/ProtectorChain.cpp2
-rw-r--r--src/cppunit/StringTools.cpp2
-rw-r--r--src/cppunit/TestPath.cpp2
-rw-r--r--src/cppunit/TypeInfoHelper.cpp2
-rw-r--r--src/cppunit/XmlElement.cpp2
-rw-r--r--src/cppunit/XmlOutputter.cpp4
7 files changed, 8 insertions, 8 deletions
diff --git a/src/cppunit/CompilerOutputter.cpp b/src/cppunit/CompilerOutputter.cpp
index 67faf6a..790481a 100644
--- a/src/cppunit/CompilerOutputter.cpp
+++ b/src/cppunit/CompilerOutputter.cpp
@@ -97,7 +97,7 @@ CompilerOutputter::printFailureLocation( SourceLine sourceLine )
}
std::string location;
- for ( int index = 0; index < m_locationFormat.length(); ++index )
+ for ( unsigned int index = 0; index < m_locationFormat.length(); ++index )
{
char c = m_locationFormat[ index ];
if ( c == '%' && ( index+1 < m_locationFormat.length() ) )
diff --git a/src/cppunit/ProtectorChain.cpp b/src/cppunit/ProtectorChain.cpp
index 8cede2b..f528341 100644
--- a/src/cppunit/ProtectorChain.cpp
+++ b/src/cppunit/ProtectorChain.cpp
@@ -76,7 +76,7 @@ ProtectorChain::protect( const Functor &functor,
const Functor &outermostFunctor = *functors.back();
bool succeed = outermostFunctor();
- for ( int deletingIndex = 0; deletingIndex < m_protectors.size(); ++deletingIndex )
+ for ( unsigned int deletingIndex = 0; deletingIndex < m_protectors.size(); ++deletingIndex )
delete functors[deletingIndex];
return succeed;
diff --git a/src/cppunit/StringTools.cpp b/src/cppunit/StringTools.cpp
index 46abd4a..2f77d24 100644
--- a/src/cppunit/StringTools.cpp
+++ b/src/cppunit/StringTools.cpp
@@ -60,7 +60,7 @@ StringTools::wrap( const std::string &text,
wrapped += lineBreak;
const std::string &line = *it;
- int index =0;
+ unsigned int index =0;
while ( index < line.length() )
{
std::string lineSlice( line.substr( index, wrapColumn ) );
diff --git a/src/cppunit/TestPath.cpp b/src/cppunit/TestPath.cpp
index 6904590..2f4903f 100644
--- a/src/cppunit/TestPath.cpp
+++ b/src/cppunit/TestPath.cpp
@@ -48,7 +48,7 @@ TestPath::TestPath( Test *searchRoot,
Test *parentTest = findActualRoot( searchRoot, pathAsString, testNames );
add( parentTest );
- for ( int index = 1; index < testNames.size(); ++index )
+ for ( unsigned int index = 1; index < testNames.size(); ++index )
{
bool childFound = false;
for ( int childIndex =0; childIndex < parentTest->getChildTestCount(); ++childIndex )
diff --git a/src/cppunit/TypeInfoHelper.cpp b/src/cppunit/TypeInfoHelper.cpp
index 5d56a19..39356d6 100644
--- a/src/cppunit/TypeInfoHelper.cpp
+++ b/src/cppunit/TypeInfoHelper.cpp
@@ -16,7 +16,7 @@ TypeInfoHelper::getClassName( const std::type_info &info )
std::string name( info.name() );
// Work around gcc 3.0 bug: strip number before type name.
- int firstNotDigitIndex = 0;
+ unsigned int firstNotDigitIndex = 0;
while ( firstNotDigitIndex < name.length() &&
name[firstNotDigitIndex] >= '0' &&
name[firstNotDigitIndex] <= '9' )
diff --git a/src/cppunit/XmlElement.cpp b/src/cppunit/XmlElement.cpp
index cdaaa69..773df8a 100644
--- a/src/cppunit/XmlElement.cpp
+++ b/src/cppunit/XmlElement.cpp
@@ -193,7 +193,7 @@ std::string
XmlElement::escape( std::string value ) const
{
std::string escaped;
- for ( int index =0; index < value.length(); ++index )
+ for ( unsigned int index =0; index < value.length(); ++index )
{
char c = value[index ];
switch ( c ) // escape all predefined XML entity (safe?)
diff --git a/src/cppunit/XmlOutputter.cpp b/src/cppunit/XmlOutputter.cpp
index 83c8905..8453424 100644
--- a/src/cppunit/XmlOutputter.cpp
+++ b/src/cppunit/XmlOutputter.cpp
@@ -100,7 +100,7 @@ XmlOutputter::addFailedTests( FailedTests &failedTests,
rootNode->addElement( testsNode );
const TestResultCollector::Tests &tests = m_result->tests();
- for ( int testNumber = 0; testNumber < tests.size(); ++testNumber )
+ for ( unsigned int testNumber = 0; testNumber < tests.size(); ++testNumber )
{
Test *test = tests[testNumber];
if ( failedTests.find( test ) != failedTests.end() )
@@ -117,7 +117,7 @@ XmlOutputter::addSuccessfulTests( FailedTests &failedTests,
rootNode->addElement( testsNode );
const TestResultCollector::Tests &tests = m_result->tests();
- for ( int testNumber = 0; testNumber < tests.size(); ++testNumber )
+ for ( unsigned int testNumber = 0; testNumber < tests.size(); ++testNumber )
{
Test *test = tests[testNumber];
if ( failedTests.find( test ) == failedTests.end() )