[Libreoffice-commits] .: Branch 'libreoffice-3-4' - sw/source

Petr Mladek pmladek at kemper.freedesktop.org
Fri Apr 29 05:09:28 PDT 2011


 sw/source/filter/basflt/fltini.cxx |    8 ++++----
 sw/source/ui/dialog/swabstdlg.cxx  |    3 ++-
 2 files changed, 6 insertions(+), 5 deletions(-)

New commits:
commit be58b0f33ba2e988bb55850683314c90926e6c8e
Author: Thorsten Behrens <tbehrens at novell.com>
Date:   Fri Apr 29 14:07:24 2011 +0200

    dlopen-global-symbols.diff: use global namespace for dlopened sym

diff --git a/sw/source/filter/basflt/fltini.cxx b/sw/source/filter/basflt/fltini.cxx
index f584b04..632d5c1 100644
--- a/sw/source/filter/basflt/fltini.cxx
+++ b/sw/source/filter/basflt/fltini.cxx
@@ -822,11 +822,11 @@ extern "C" { static void SAL_CALL thisModule() {} }
 static oslGenericFunction GetMswordLibSymbol( const char *pSymbol )
 {
     static ::osl::Module aModule;
-        static sal_Bool bLoaded = sal_False;
+    static sal_Bool bLoaded = sal_False;
     static ::rtl::OUString aLibName( RTL_CONSTASCII_USTRINGPARAM( SVLIBRARY( "msword" ) ) );
-        if (!bLoaded)
-                bLoaded = SvLibrary::LoadModule( aModule, aLibName, &thisModule );
-        if (bLoaded)
+    if (!bLoaded)
+        bLoaded = SvLibrary::LoadModule( aModule, aLibName, &thisModule, SAL_LOADMODULE_GLOBAL | SAL_LOADMODULE_LAZY );
+    if (bLoaded)
         return aModule.getFunctionSymbol( ::rtl::OUString::createFromAscii( pSymbol ) );
     return NULL;
 }
diff --git a/sw/source/ui/dialog/swabstdlg.cxx b/sw/source/ui/dialog/swabstdlg.cxx
index 4b8de38..3e64a6e 100644
--- a/sw/source/ui/dialog/swabstdlg.cxx
+++ b/sw/source/ui/dialog/swabstdlg.cxx
@@ -44,7 +44,8 @@ SwAbstractDialogFactory* SwAbstractDialogFactory::Create()
     SwFuncPtrCreateDialogFactory fp = 0;
     static ::osl::Module aDialogLibrary;
     static const ::rtl::OUString sLibName(::vcl::unohelper::CreateLibraryName("swui", sal_True));
-    if ( aDialogLibrary.is() || aDialogLibrary.loadRelative( &thisModule, String( sLibName ) ) )
+    if ( aDialogLibrary.is() || aDialogLibrary.loadRelative( &thisModule, String( sLibName ),
+                                                             SAL_LOADMODULE_GLOBAL | SAL_LOADMODULE_LAZY ) )
         fp = ( SwAbstractDialogFactory* (__LOADONCALLAPI*)() )
             aDialogLibrary.getFunctionSymbol( ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("CreateDialogFactory")));
     if ( fp )


More information about the Libreoffice-commits mailing list