projects
/
oweals
/
minetest.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e5b6367
)
Make minor style change(unescape_string())
author
Craig Robbins
<kde.psych@gmail.com>
Fri, 16 Jan 2015 11:05:44 +0000
(21:05 +1000)
committer
Craig Robbins
<kde.psych@gmail.com>
Fri, 16 Jan 2015 11:05:44 +0000
(21:05 +1000)
src/util/string.h
patch
|
blob
|
history
diff --git
a/src/util/string.h
b/src/util/string.h
index fa298bfaa9f926699127bee36e63ec94cb23da39..3ece2371d6c0d0f20765e31a8db438f9239bcf75 100644
(file)
--- a/
src/util/string.h
+++ b/
src/util/string.h
@@
-406,10
+406,11
@@
inline std::basic_string<T> unescape_string(std::basic_string<T> &s)
std::basic_string<T> res;
for (size_t i = 0; i < s.length(); i++) {
- if (s[i] == '\\')
+ if (s[i] == '\\')
{
i++;
- if (i >= s.length())
- break;
+ if (i >= s.length())
+ break;
+ }
res += s[i];
}