From 13fac4894f752e922727c6f22c6303712e06ba12 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Tue, 1 Aug 2017 13:50:45 +0100 Subject: normalize resource locale ctor construction mechanisms MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit make them all the same and share std::locales more various OModuleClient, etc, classes go away Change-Id: I7e3ff01a69332eeacd22e3078f66a60318de62d5 Reviewed-on: https://gerrit.libreoffice.org/40634 Tested-by: Jenkins Reviewed-by: Caolán McNamara Tested-by: Caolán McNamara --- basic/source/runtime/basrdll.cxx | 9 --------- 1 file changed, 9 deletions(-) (limited to 'basic/source/runtime/basrdll.cxx') diff --git a/basic/source/runtime/basrdll.cxx b/basic/source/runtime/basrdll.cxx index da830b4e9e6c..a8fadaa5a1af 100644 --- a/basic/source/runtime/basrdll.cxx +++ b/basic/source/runtime/basrdll.cxx @@ -35,13 +35,11 @@ struct BasicDLL::Impl bool bDebugMode; bool bBreakEnabled; - std::locale aBasResLocale; std::unique_ptr xSbxAppData; Impl() : bDebugMode(false) , bBreakEnabled(true) - , aBasResLocale(Translate::Create("sb")) , xSbxAppData(new SbxAppData) { } }; @@ -52,11 +50,6 @@ BasicDLL * BASIC_DLL; } -OUString BasResId(const char* pId) -{ - return Translate::get(pId, BASIC_DLL->GetBasResLocale()); -} - BasicDLL::BasicDLL() : m_xImpl(new Impl) { @@ -67,8 +60,6 @@ BasicDLL::~BasicDLL() { } -const std::locale& BasicDLL::GetBasResLocale() const { return m_xImpl->aBasResLocale; } - void BasicDLL::EnableBreak( bool bEnable ) { BasicDLL* pThis = BASIC_DLL; -- cgit