From 9134d603584241135be03ce2e9f2f66a46c44fc6 Mon Sep 17 00:00:00 2001 From: Constantin Michael Date: Tue, 5 Jul 2011 14:12:09 +0200 Subject: Aesthetic changes --- odb/pgsql/query.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'odb/pgsql/query.cxx') diff --git a/odb/pgsql/query.cxx b/odb/pgsql/query.cxx index 5bf1f52..36a624b 100644 --- a/odb/pgsql/query.cxx +++ b/odb/pgsql/query.cxx @@ -149,7 +149,7 @@ namespace odb // Copy any remaining characters in q.clause_. // - if (cur_pos < q.clause_.length ()) + if (cur_pos < q.clause_.size ()) { size_t n (clause_.size ()); @@ -159,7 +159,7 @@ namespace odb clause_.append (q.clause_, cur_pos, string::npos); } - size_t n = bind_.size (); + size_t n (bind_.size ()); parameters_.insert ( parameters_.end (), q.parameters_.begin (), q.parameters_.end ()); @@ -212,13 +212,13 @@ namespace odb clause_ += ' '; parameter_offset o; - o.first = clause_.length (); + o.first = clause_.size (); ostringstream ss; ss << parameters_.size () + 1; clause_ += '$' + ss.str (); - o.second = clause_.length (); + o.second = clause_.size (); parameter_offsets_.push_back (o); parameters_.push_back (p); -- cgit v1.1