Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/WolfireGames/overgrowth.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'Source/Utility/strings.cpp')
-rw-r--r--Source/Utility/strings.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/Source/Utility/strings.cpp b/Source/Utility/strings.cpp
index d77a9a8d..15914591 100644
--- a/Source/Utility/strings.cpp
+++ b/Source/Utility/strings.cpp
@@ -229,11 +229,9 @@ bool hasEnding (string const &fullString, string const &ending) {
bool hasAnyOfEndings( const string &fullString, const vector<string> &endings)
{
- for( vector<string>::const_iterator sit = endings.begin();
- sit != endings.end();
- sit++ )
+ for(const auto & ending : endings)
{
- if( hasEnding( fullString, *sit ) )
+ if( hasEnding( fullString, ending ) )
{
return true;
}