From fe660cdff59aa3a939479ed60172e5c0803552b2 Mon Sep 17 00:00:00 2001 From: Daniel Wilhelm Date: Sun, 8 Jan 2017 18:21:23 +0100 Subject: 8.7 --- zen/i18n.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'zen/i18n.h') diff --git a/zen/i18n.h b/zen/i18n.h index 4f62fd4c..e5b0ab2c 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& getGlobalTranslationHandler() +Global& refGlobalTranslationHandler() { //getTranslator() may be called even after static objects of this translation unit are destroyed! static Global inst; //external linkage even in header! @@ -110,14 +110,14 @@ Global& getGlobalTranslationHandler() inline void setTranslator(std::unique_ptr&& newHandler) { - implementation::getGlobalTranslationHandler().set(std::move(newHandler)); + implementation::refGlobalTranslationHandler().set(std::move(newHandler)); } inline std::shared_ptr getTranslator() { - return implementation::getGlobalTranslationHandler().get(); + return implementation::refGlobalTranslationHandler().get(); } } -- cgit