diff options
Diffstat (limited to 'common/tools.cpp')
-rw-r--r-- | common/tools.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/common/tools.cpp b/common/tools.cpp index d64b86b..61220c6 100644 --- a/common/tools.cpp +++ b/common/tools.cpp @@ -137,8 +137,8 @@ string GenerateUUIDRandomly(){ return uuid.str(); } -void StringExplode(string str, string separator, StringVector results) { - int found; +void StringExplode(string str, string separator, StringVector& results) { + string::size_type found; found = str.find_first_of(separator); while(found != string::npos){ if(found > 0){ |