Addressed some static analysis warnings

Based on findings in #957
This commit is contained in:
Martin Hořeňovský
2017-07-19 09:50:08 +02:00
parent 8ebe94ca2e
commit 7a22bad763
9 changed files with 15 additions and 23 deletions

View File

@@ -95,11 +95,11 @@ namespace Catch {
if( lastSlash != std::string::npos )
filename = filename.substr( lastSlash+1 );
std::string::size_type lastDot = filename.find_last_of( "." );
std::string::size_type lastDot = filename.find_last_of( '.' );
if( lastDot != std::string::npos )
filename = filename.substr( 0, lastDot );
tags.insert( "#" + filename );
tags.insert( '#' + filename );
setTags( test, tags );
}
}