use var passed by reference

Origin commit data
------------------
Commit: ddc9229efc
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2013-04-18 (Thu, 18 Apr 2013)
This commit is contained in:
Jacek Jendrzej
2013-04-18 19:19:30 +02:00
parent 0b44ef089f
commit d0cddc8afd
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;