From Olar Flebbe, "Visual Studio 2005 triggered a small glitch in UnittestFramework.cpp

Do not derefence it2 if it is at end()."
This commit is contained in:
Robert Osfield
2007-05-29 09:57:18 +00:00
parent fb3ea80793
commit 11df762e08

View File

@@ -100,7 +100,7 @@ TestSuite* TestGraph::suite(const std::string& path, TestSuite* tsuite, bool cre
// Dissect the path into it's constituent components
do{
while( *it2 != '.' && it2 != path.end() ) ++it2;
while( it2 != path.end() && *it2 != '.' ) ++it2;
// Consider a check for "" empty strings?
pathComponents.push_back( std::string(it1,it2) );