use reference

This commit is contained in:
lite3 2014-09-30 01:07:19 +08:00
parent 240b922271
commit 21081b9e1a
1 changed files with 1 additions and 1 deletions

View File

@ -125,7 +125,7 @@ std::string FileUtilsAndroid::getNewFilename(const std::string &filename) const
if (change)
{
newFileName.clear();
for (auto s : v)
for (auto &s : v)
{
newFileName.append(s);
}