summaryrefslogtreecommitdiff
path: root/zen/i18n.h
diff options
context:
space:
mode:
authorDaniel Wilhelm <shieldwed@outlook.com>2016-10-29 11:35:33 +0200
committerDaniel Wilhelm <shieldwed@outlook.com>2016-10-29 11:35:33 +0200
commit8dd4a066ca0312ff03595b96a75abc8c6123f576 (patch)
treecf6aac6897f1ae4244b4b309627fc28902da2df9 /zen/i18n.h
parent8.4 (diff)
downloadFreeFileSync-8dd4a066ca0312ff03595b96a75abc8c6123f576.tar.gz
FreeFileSync-8dd4a066ca0312ff03595b96a75abc8c6123f576.tar.bz2
FreeFileSync-8dd4a066ca0312ff03595b96a75abc8c6123f576.zip
8.5
Diffstat (limited to 'zen/i18n.h')
-rw-r--r--zen/i18n.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/zen/i18n.h b/zen/i18n.h
index 9e4db0e8..32b6ed80 100644
--- a/zen/i18n.h
+++ b/zen/i18n.h
@@ -98,7 +98,7 @@ std::wstring translate(const std::wstring& singular, const std::wstring& plural,
inline
-Global<const TranslationHandler>& refTranslationGlobals()
+Global<const TranslationHandler>& getGlobalTranslationHandler()
{
//getTranslator() may be called even after static objects of this translation unit are destroyed!
static Global<const TranslationHandler> inst; //external linkage even in header!
@@ -110,14 +110,14 @@ Global<const TranslationHandler>& refTranslationGlobals()
inline
void setTranslator(std::unique_ptr<const TranslationHandler>&& newHandler)
{
- implementation::refTranslationGlobals().set(std::move(newHandler));
+ implementation::getGlobalTranslationHandler().set(std::move(newHandler));
}
inline
std::shared_ptr<const TranslationHandler> getTranslator()
{
- return implementation::refTranslationGlobals().get();
+ return implementation::getGlobalTranslationHandler().get();
}
}
bgstack15