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

Build fixes

This commit is contained in:
RadRussianRus
2019-10-08 02:37:03 +03:00
parent 675760975c
commit b9aaca7706
2 changed files with 4 additions and 4 deletions

View File

@@ -643,7 +643,7 @@ void Instance::loadFromJson(const QString &filename) {
} else if ((*value).isObject()) {
const auto keyPlurals = (*value).isObject()
const auto keyPlurals = (*value).toObject();
const auto pluralList = keyPlurals.keys();
for (auto pli = keyList.constBegin(), ple = keyList.constEnd(); pli != ple; ++pli) {
@@ -656,8 +656,8 @@ void Instance::loadFromJson(const QString &filename) {
continue;
}
const auto name = QByteArray(key + "#" + plural);
const auto translation = QByteArray((*pluralValue).toString());
const auto name = QByteArray().append(key + "#" + plural);
const auto translation = QByteArray().append((*pluralValue).toString());
applyValue(name, translation);
if (--limit <= 0) {

View File

@@ -211,7 +211,7 @@ inline void SetNetworkBoost(int boost) {
DeclareSetting(bool, ShowPhoneInDrawer);
using ScaleVector = std::std::vector<int>;
using ScaleVector = std::vector<int>;
DeclareRefSetting(ScaleVector, InterfaceScales);
bool HasCustomScales();
bool AddCustomScale(int scale);