[EGD-3985] Removed unique_ptr to vector for DatabaseModel updateRecords Method.

This commit is contained in:
Przemyslaw Brudny
2020-10-12 15:06:14 +02:00
committed by PrzeBrudny
parent 491e4fb795
commit 0eb1fd03e5
27 changed files with 37 additions and 57 deletions

View File

@@ -85,10 +85,7 @@ namespace gui
bool NotesMainWindow::onDatabaseMessage(sys::Message *msgl)
{
DBNotesResponseMessage *msg = reinterpret_cast<DBNotesResponseMessage *>(msgl);
if (notesModel->updateRecords(std::move(msg->records)))
return true;
return false;
return notesModel->updateRecords(std::move(*msg->records));
}
} /* namespace gui */