summaryrefslogtreecommitdiff
path: root/basic
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2012-02-10 22:50:27 +0100
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2012-02-10 22:59:45 +0100
commitda39d1443c03da64fe64a1862cdc36246e19d6aa (patch)
tree2fd3a7a43a9d270dff32cbc704b9d7031ed7913b /basic
parent05d48fb71f85af3bd66ff1156b71f8d95ea7a411 (diff)
use TransliterationWrapper in lcl_queryMacro, fdo#45607
Diffstat (limited to 'basic')
-rw-r--r--basic/source/basmgr/basmgr.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/basic/source/basmgr/basmgr.cxx b/basic/source/basmgr/basmgr.cxx
index df20c2084b3f..83000b820d74 100644
--- a/basic/source/basmgr/basmgr.cxx
+++ b/basic/source/basmgr/basmgr.cxx
@@ -46,6 +46,7 @@
#include <basic/sbuno.hxx>
#include <basic/basmgr.hxx>
+#include <basic/global.hxx>
#include <sbunoobj.hxx>
#include "basrid.hxx"
#include "sbintern.hxx"
@@ -1736,12 +1737,11 @@ namespace
String sModule = sMacro.GetToken( 0, '.', nLast );
sMacro.Erase( 0, nLast );
- IntlWrapper aIntlWrapper( ::comphelper::getProcessServiceFactory(), Application::GetSettings().GetLocale() );
- const CollatorWrapper* pCollator = aIntlWrapper.getCollator();
+ utl::TransliterationWrapper* pTransliteration = SbGlobal::GetTransliteration();
sal_uInt16 nLibCount = i_manager->GetLibCount();
for ( sal_uInt16 nLib = 0; nLib < nLibCount; ++nLib )
{
- if ( COMPARE_EQUAL == pCollator->compareString( i_manager->GetLibName( nLib ), sLibName ) )
+ if ( pTransliteration->isEqual( i_manager->GetLibName( nLib ), sLibName ) )
{
StarBASIC* pLib = i_manager->GetLib( nLib );
if( !pLib )
@@ -1756,7 +1756,7 @@ namespace
for( sal_uInt16 nMod = 0; nMod < nModCount; ++nMod )
{
SbModule* pMod = (SbModule*)pLib->GetModules()->Get( nMod );
- if ( pMod && COMPARE_EQUAL == pCollator->compareString( pMod->GetName(), sModule ) )
+ if ( pMod && pTransliteration->isEqual( pMod->GetName(), sModule ) )
{
SbMethod* pMethod = (SbMethod*)pMod->Find( sMacro, SbxCLASS_METHOD );
if( pMethod )