Fixed serialization

This commit is contained in:
Andrew nuark G 2020-12-15 20:43:19 +07:00
parent 48ad2f1817
commit 7d60d579b6
5 changed files with 26 additions and 16 deletions

View file

@ -1,6 +1,6 @@
#include "cargo_entity.h"
cargo_entity::cargo_entity(const QString &title, int volume) : _title(title), _volume(volume) {
cargo_entity::cargo_entity(const QString &title, unsigned int volume) : _title(title), _volume(volume) {
this->_id = volume;
auto hash = QCryptographicHash::hash(title.toLocal8Bit(), QCryptographicHash::Md5);
for (auto bit : hash) {