Skip to content

Commit

Permalink
Fix value assigning warning
Browse files Browse the repository at this point in the history
  • Loading branch information
pbek committed Jan 8, 2020
1 parent b7770f6 commit 175223a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/entities/notesubfolder.cpp
Expand Up @@ -352,12 +352,12 @@ bool NoteSubFolder::store() {
":modified)");
}

QDateTime modified = QDateTime::currentDateTime();
QDateTime currentDateTime = QDateTime::currentDateTime();

query.bindValue(":name", name);
query.bindValue(":parent_id", parentId);
query.bindValue(":file_last_modified", fileLastModified);
query.bindValue(":modified", modified);
query.bindValue(":modified", currentDateTime);

// on error
if (!query.exec()) {
Expand All @@ -367,7 +367,7 @@ bool NoteSubFolder::store() {
id = query.lastInsertId().toInt();
}

modified = modified;
modified = currentDateTime;
return true;
}

Expand Down

0 comments on commit 175223a

Please sign in to comment.