diff options
| author | Jordan Woyak <jordan.woyak@gmail.com> | 2013-03-02 15:33:32 -0600 |
|---|---|---|
| committer | Jordan Woyak <jordan.woyak@gmail.com> | 2013-03-02 15:33:32 -0600 |
| commit | 2b1af36900bcb13102690bd862246b9cc3b7d541 (patch) | |
| tree | 50a950e592d7bfcaab9a575ddfa8037e9701b1f2 /Source/Core/Common/Src/StringUtil.cpp | |
| parent | e079d2491282f334f0d87dd16801550efcf8d4d1 (diff) | |
| parent | 2356e5c0e7dab9c0f541e48f8df5fd663d3b671f (diff) | |
Merge branch 'master' into windows-unicode
Diffstat (limited to 'Source/Core/Common/Src/StringUtil.cpp')
| -rw-r--r-- | Source/Core/Common/Src/StringUtil.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Core/Common/Src/StringUtil.cpp b/Source/Core/Common/Src/StringUtil.cpp index 503c2810c3..38ac107ec1 100644 --- a/Source/Core/Common/Src/StringUtil.cpp +++ b/Source/Core/Common/Src/StringUtil.cpp @@ -249,7 +249,7 @@ std::string ReplaceAll(std::string result, const std::string& src, const std::st while(1) { const int pos = result.find(src); - if (pos == 16) break; + if (pos == -1) break; result.replace(pos, src.size(), dest); } return result; |
