diff options
Diffstat (limited to 'common/storage_common.cpp')
-rw-r--r-- | common/storage_common.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/common/storage_common.cpp b/common/storage_common.cpp index 81a38c7..f648c94 100644 --- a/common/storage_common.cpp +++ b/common/storage_common.cpp | |||
@@ -113,7 +113,7 @@ QByteArray DataStore::getUidFromRevision(const DataStore::Transaction &transacti | |||
113 | transaction.openDatabase("revisions") | 113 | transaction.openDatabase("revisions") |
114 | .scan(QByteArray::number(revision), | 114 | .scan(QByteArray::number(revision), |
115 | [&](const QByteArray &, const QByteArray &value) -> bool { | 115 | [&](const QByteArray &, const QByteArray &value) -> bool { |
116 | uid = value; | 116 | uid = QByteArray{value.constData(), value.size()}; |
117 | return false; | 117 | return false; |
118 | }, | 118 | }, |
119 | [revision](const Error &error) { SinkWarning() << "Couldn't find uid for revision: " << revision << error.message; }); | 119 | [revision](const Error &error) { SinkWarning() << "Couldn't find uid for revision: " << revision << error.message; }); |
@@ -126,7 +126,7 @@ QByteArray DataStore::getTypeFromRevision(const DataStore::Transaction &transact | |||
126 | transaction.openDatabase("revisionType") | 126 | transaction.openDatabase("revisionType") |
127 | .scan(QByteArray::number(revision), | 127 | .scan(QByteArray::number(revision), |
128 | [&](const QByteArray &, const QByteArray &value) -> bool { | 128 | [&](const QByteArray &, const QByteArray &value) -> bool { |
129 | type = value; | 129 | type = QByteArray{value.constData(), value.size()}; |
130 | return false; | 130 | return false; |
131 | }, | 131 | }, |
132 | [revision](const Error &error) { SinkWarning() << "Couldn't find type for revision " << revision; }); | 132 | [revision](const Error &error) { SinkWarning() << "Couldn't find type for revision " << revision; }); |