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

Fix build for old OS X versions.

This commit is contained in:
John Preston
2019-06-23 10:21:06 +02:00
parent 29532f8232
commit 8a7980ca7b
2 changed files with 4 additions and 2 deletions

View File

@@ -209,7 +209,7 @@ using S = std::decay_t<decltype(std::declval<P>()(QString()))>;\n\
template <typename ...Tags>\n\
struct phrase;\n\
\n";
std::set<QStringList> producersDeclared;
std::set<QString> producersDeclared;
for (auto &entry : langpack_.entries) {
const auto isPlural = !entry.keyBase.isEmpty();
const auto &key = entry.key;
@@ -238,7 +238,7 @@ struct phrase;\n\
}
producerArgs.push_back("P p = P()");
currentArgs.push_back("P p = P()");
if (!producersDeclared.emplace(tags).second) {
if (!producersDeclared.emplace(tags.join(',')).second) {
continue;
}
header_->stream() << "\