From b356e332ac5fbda88c85553e7ec029c6fe493cf8 Mon Sep 17 00:00:00 2001 From: randomdan Date: Mon, 9 Jul 2012 18:26:22 +0000 Subject: Fixes suggested by cppcheck --- libpqpp/modifycommand.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libpqpp/modifycommand.cpp') diff --git a/libpqpp/modifycommand.cpp b/libpqpp/modifycommand.cpp index b9ece01..3eb41ec 100644 --- a/libpqpp/modifycommand.cpp +++ b/libpqpp/modifycommand.cpp @@ -24,7 +24,7 @@ PQ::ModifyCommand::prepare() const char buf[4]; int p = 1; bool inquote = false; - for(std::string::const_iterator i = sql.begin(); i != sql.end(); i++) { + for(std::string::const_iterator i = sql.begin(); i != sql.end(); ++i) { if (*i == '?' && !inquote) { snprintf(buf, 4, "$%d", p++); psql += buf; -- cgit v1.2.3