Skip to content

Commit

Permalink
(Ters) use std::string::size_type
Browse files Browse the repository at this point in the history
git-svn-id: svn://tron.homeunix.org/simutrans/simutrans/trunk@6837 8aca7d54-2c30-db11-9de9-000461428c89
  • Loading branch information
Dwachs committed Oct 20, 2013
1 parent 899bd42 commit f5a3f91
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/simstring.cc
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ std::string trim(const std::string &str_)
std::string str(str_);

// left trim
int pos = str.find_first_not_of(" \t");
std::string::size_type pos = str.find_first_not_of(" \t");
if( pos && pos != std::string::npos ) {
str = str.substr(pos);
}
Expand Down

0 comments on commit f5a3f91

Please sign in to comment.