use var passed by reference

This commit is contained in:
Jacek Jendrzej
2013-04-18 19:19:30 +02:00
parent e07e2e5264
commit ddc9229efc
12 changed files with 36 additions and 36 deletions

View File

@@ -614,7 +614,7 @@ int find_next_char(char to_find, char *text, int start_pos, int end_pos)
}
//void CMovieInfo::strReplace(std::string& orig, const char* fstr, const std::string rstr)
void strReplace(std::string & orig, const char *fstr, const std::string rstr)
void strReplace(std::string & orig, const char *fstr, const std::string &rstr)
{
// replace all occurrence of fstr with rstr and, and returns a reference to itself
size_t index = 0;