Skip to content

Commit

Permalink
delete unused line
Browse files Browse the repository at this point in the history
  • Loading branch information
treefrogframework committed Jun 27, 2017
1 parent 5e71227 commit ee3dade
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tmongoobject.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ bool TMongoObject::update()
for (int i = metaObject()->propertyOffset(); i < metaObject()->propertyCount(); ++i) {
const char *propName = metaObject()->property(i).name();
QString prop = TAbstractModel::fieldNameToVariableName(QString::fromLatin1(propName));
QVariant V = property(propName);

if (!updflag && (prop == UpdatedAt || prop == ModifiedAt)) {
setProperty(propName, QDateTime::currentDateTime());
updflag = true;
Expand Down

0 comments on commit ee3dade

Please sign in to comment.