From: Philipp Spitzer Date: Tue, 6 Sep 2011 19:14:21 +0000 (+0000) Subject: Removed one comment and fixed typos. X-Git-Tag: 0.5.4~9 X-Git-Url: https://git.toastfreeware.priv.at/toast/confclerk.git/commitdiff_plain/4bf728f7906e7c5fd5ae5bfc5a0a4b26804ce97e Removed one comment and fixed typos. --- diff --git a/src/orm/ormrecord.h b/src/orm/ormrecord.h index 4f5828d..85d32c2 100644 --- a/src/orm/ormrecord.h +++ b/src/orm/ormrecord.h @@ -93,8 +93,8 @@ T OrmRecord::hydrate(const QSqlRecord& record) } // updates specified column 'col' -// if the value is not specified as an argument, -// it's taken from the reford itself +// if the value is not specified as an argument, +// it's taken from the record itself // see also: setValue() method for more details template void OrmRecord::update(QString col, QVariant value) @@ -106,7 +106,6 @@ void OrmRecord::update(QString col, QVariant value) else // take 'col' value from the record; see setValue() query.bindValue(":col", convertToDb(this->value(col), this->value(col).type())); query.bindValue(":id", this->value("id")); - //query.bindValue(":id", convertToDb(value("id"), QVariant::Int)); query.exec(); }