code cleanup: also fix crash in GPU_state_print(). and confine to debug mode builds.

This commit is contained in:
2013-06-13 11:59:28 +00:00
parent eb136fcbec
commit cda5770160
7 changed files with 11 additions and 10 deletions

View File

@@ -311,7 +311,7 @@ std::string bc_replace_string(std::string data, const std::string& pattern,
const std::string& replacement)
{
size_t pos = 0;
while((pos = data.find(pattern, pos)) != std::string::npos) {
while ((pos = data.find(pattern, pos)) != std::string::npos) {
data.replace(pos, pattern.length(), replacement);
pos += replacement.length();
}