Make minor style change(unescape_string())
authorCraig Robbins <kde.psych@gmail.com>
Fri, 16 Jan 2015 11:05:44 +0000 (21:05 +1000)
committerCraig Robbins <kde.psych@gmail.com>
Fri, 16 Jan 2015 11:05:44 +0000 (21:05 +1000)
src/util/string.h

index fa298bfaa9f926699127bee36e63ec94cb23da39..3ece2371d6c0d0f20765e31a8db438f9239bcf75 100644 (file)
@@ -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];
        }