summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rw-r--r--tools/source/rc/resmgr.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/source/rc/resmgr.cxx b/tools/source/rc/resmgr.cxx
index 55610d82d7c6..7de0a56f6b4b 100644
--- a/tools/source/rc/resmgr.cxx
+++ b/tools/source/rc/resmgr.cxx
@@ -1329,12 +1329,13 @@ ResMgr* ResMgr::CreateFallbackResMgr( const ResId& rId, const Resource* pResourc
}
ResMgr* ResMgr::CreateResMgr( const sal_Char* pPrefixName,
- LanguageTag aLocale )
+ const LanguageTag& _aLocale )
{
osl::Guard<osl::Mutex> aGuard( getResMgrMutex() );
OUString aPrefix( pPrefixName, strlen( pPrefixName ), osl_getThreadTextEncoding() );
+ LanguageTag aLocale = _aLocale;
if( aLocale.isSystemLocale() )
aLocale = ResMgrContainer::get().getDefLocale();