From b7a4dc344abaa08b128b9f051935d7e45ef28df0 Mon Sep 17 00:00:00 2001 From: Casey Langen Date: Wed, 15 Mar 2017 00:08:33 -0700 Subject: [PATCH] Fixed macOS compile. --- src/core/i18n/Locale.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/i18n/Locale.cpp b/src/core/i18n/Locale.cpp index 522c8782b..ee701f75b 100644 --- a/src/core/i18n/Locale.cpp +++ b/src/core/i18n/Locale.cpp @@ -132,7 +132,7 @@ std::string Locale::Translate(const char* key) { static nlohmann::json empty; if (!this->localeData.is_null()) { - nlohmann::json& strings = this->localeData.value(KEY_STRINGS, empty); + const nlohmann::json& strings = this->localeData.value(KEY_STRINGS, empty); auto it = strings.find(key); return (it != strings.end()) ? it.value() : key; }