db/proxy: merge redundant string::push_back() calls

This commit is contained in:
Max Kellermann 2014-01-22 23:13:24 +01:00
parent d9926a1c21
commit 546e7cafa4
1 changed files with 2 additions and 4 deletions

View File

@ -254,12 +254,10 @@ dquote(std::string &out, const char *in)
case '\\': case '\\':
case '"': case '"':
out.push_back('\\'); out.push_back('\\');
out.push_back(*in);
break; break;
default:
out.push_back(*in);
} }
out.push_back(*in);
} }
out.push_back('"'); out.push_back('"');