summaryrefslogtreecommitdiff
path: root/libpqpp
diff options
context:
space:
mode:
Diffstat (limited to 'libpqpp')
-rw-r--r--libpqpp/command.cpp2
-rw-r--r--libpqpp/modifycommand.cpp2
-rw-r--r--libpqpp/selectcommand.cpp2
3 files changed, 3 insertions, 3 deletions
diff --git a/libpqpp/command.cpp b/libpqpp/command.cpp
index 6edc090..f8dad14 100644
--- a/libpqpp/command.cpp
+++ b/libpqpp/command.cpp
@@ -19,7 +19,7 @@ PQ::Command::Command(const Connection * conn, const std::string & sql, unsigned
PQ::Command::~Command()
{
- for (std::vector<char *>::const_iterator i = values.begin(); i != values.end(); i++) {
+ for (std::vector<char *>::const_iterator i = values.begin(); i != values.end(); ++i) {
free(*i);
}
}
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;
diff --git a/libpqpp/selectcommand.cpp b/libpqpp/selectcommand.cpp
index dc06b36..da12331 100644
--- a/libpqpp/selectcommand.cpp
+++ b/libpqpp/selectcommand.cpp
@@ -41,7 +41,7 @@ PQ::SelectCommand::execute()
psql += "DECLARE ";
psql += stmntName;
psql += " CURSOR FOR ";
- 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;