From 5481e38d0b505277615f8b76cb90f0742a1dfe6f Mon Sep 17 00:00:00 2001 From: Craig Robbins Date: Fri, 16 Jan 2015 21:05:44 +1000 Subject: Make minor style change(unescape_string()) --- src/util/string.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/util') diff --git a/src/util/string.h b/src/util/string.h index fa298bfaa..3ece2371d 100644 --- a/src/util/string.h +++ b/src/util/string.h @@ -406,10 +406,11 @@ inline std::basic_string unescape_string(std::basic_string &s) std::basic_string 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]; } -- cgit v1.2.3