diff options
author | Minijackson <minijackson@riseup.net> | 2018-08-21 13:40:59 +0200 |
---|---|---|
committer | Minijackson <minijackson@riseup.net> | 2018-08-21 14:04:56 +0200 |
commit | d320030c53cf9fd4338ca3f6da00a9b876c13397 (patch) | |
tree | 6e9633c3a834bb50a55bf4d6ce60dce32de987c0 /sinksh/syntax_modules/sink_inspect.cpp | |
parent | 23e13c91e44e9d1fcbe2215f16d10117de4d0e84 (diff) | |
download | sink-d320030c53cf9fd4338ca3f6da00a9b876c13397.tar.gz sink-d320030c53cf9fd4338ca3f6da00a9b876c13397.zip |
Refactor QByteArray ↔ size_t conversions into utils
Diffstat (limited to 'sinksh/syntax_modules/sink_inspect.cpp')
-rw-r--r-- | sinksh/syntax_modules/sink_inspect.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sinksh/syntax_modules/sink_inspect.cpp b/sinksh/syntax_modules/sink_inspect.cpp index 956431a..1ab68f5 100644 --- a/sinksh/syntax_modules/sink_inspect.cpp +++ b/sinksh/syntax_modules/sink_inspect.cpp | |||
@@ -108,7 +108,7 @@ bool inspect(const QStringList &args, State &state) | |||
108 | 108 | ||
109 | QSet<QByteArray> uids; | 109 | QSet<QByteArray> uids; |
110 | db.scan("", [&] (const QByteArray &key, const QByteArray &data) { | 110 | db.scan("", [&] (const QByteArray &key, const QByteArray &data) { |
111 | size_t revision = *reinterpret_cast<const char*>(key.constData()); | 111 | size_t revision = Sink::byteArrayToSizeT(key); |
112 | uids.insert(Sink::Storage::DataStore::getUidFromRevision(transaction, revision)); | 112 | uids.insert(Sink::Storage::DataStore::getUidFromRevision(transaction, revision)); |
113 | return true; | 113 | return true; |
114 | }, | 114 | }, |