2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 14:45:14 +00:00

Fix build for GCC.

This commit is contained in:
John Preston
2019-06-21 10:58:31 +02:00
parent 4917ca7b32
commit 6537e524b8
2 changed files with 4 additions and 4 deletions

View File

@@ -350,7 +350,7 @@ ushort GetTagIndex(QLatin1String tag) {\n\
}
writeSetSearch(tagsSet, [](const QString &tag) {
return "lt_" + tag;
return "ushort(lt_" + tag + ")";
}, "kTagsCount");
source_->stream() << "\
@@ -427,7 +427,7 @@ bool IsTagReplaced(ushort key, ushort tag) {\n\
}\n\
\n\
QString GetOriginalValue(ushort key) {\n\
Expects(key >= 0 && key < kKeysCount);\n\
Expects(key < kKeysCount);\n\
\n\
const auto offset = Offsets[key];\n\
return QString::fromRawData(DefaultData + offset, Offsets[key + 1] - offset);\n\