Kaydet (Commit) b5f11394 authored tarafından Michael Meeks's avatar Michael Meeks

cleanup some module calls.

Change-Id: I2871b7e49416c1fb25b80a7a4e7e2dc98efd75d8
üst fb23f10f
......@@ -103,12 +103,11 @@ static void getPaLib()
#if defined( UNX ) && !( defined( MACOSX ) || defined( IOS ) || defined( ANDROID ) )
if( ! driverLib )
{
OUString aLibName( _XSALSET_LIBNAME );
driverLib = osl_loadModuleRelative( (oslGenericFunction)getPaLib, aLibName.pData, SAL_LOADMODULE_DEFAULT );
driverLib = osl_loadModuleRelativeAscii( (oslGenericFunction)getPaLib,
_XSALSET_LIBNAME,
SAL_LOADMODULE_DEFAULT );
if ( !driverLib )
{
return;
}
pSetupFunction = (setupFunction)osl_getAsciiFunctionSymbol( driverLib, "Sal_SetupPrinterDriver" );
if ( !pSetupFunction )
......
......@@ -148,14 +148,13 @@ RandRWrapper::RandRWrapper( Display* pDisplay ) :
initFromModule();
if( ! m_bValid )
{
rtl::OUString aLibName( RTL_CONSTASCII_USTRINGPARAM( "libXrandr.so.2" ) );
// load and resolve dependencies immediately
// rationale: there are older distributions where libXrandr.so.2 is not linked
// with libXext.so, resulting in a missing symbol and terminating the office
// obviously they expected libXext to be linked in global symbolspace (that is
// linked by the application), which is not the case with us (because we want
// to be able to run in headless mode even without an installed X11 library)
m_pRandRLib = osl_loadModule( aLibName.pData, SAL_LOADMODULE_DEFAULT | SAL_LOADMODULE_NOW );
m_pRandRLib = osl_loadModule( "libXrandr.so.2", SAL_LOADMODULE_DEFAULT | SAL_LOADMODULE_NOW );
initFromModule();
}
if( m_bValid )
......
......@@ -21,8 +21,6 @@
#include <stdio.h>
#include <rtl/ustring.hxx>
#include <osl/module.h>
#include <unx/salunx.h>
#include <unx/saldata.hxx>
#include <unx/saldisp.hxx>
......
......@@ -870,9 +870,7 @@ bool CUPSManager::addOrRemovePossible() const
const char* CUPSManager::authenticateUser( const char* /*pIn*/ )
{
const char* pRet = NULL;
OUString aLib(_XSALSET_LIBNAME );
oslModule pLib = osl_loadModule( aLib.pData, SAL_LOADMODULE_LAZY );
oslModule pLib = osl_loadModuleAscii( _XSALSET_LIBNAME, SAL_LOADMODULE_LAZY );
if( pLib )
{
OUString aSym( "Sal_authenticateQuery" );
......
......@@ -106,7 +106,7 @@ VisualStylesAPI::VisualStylesAPI()
lpfnGetThemePartSize( NULL ),
lpfnIsThemeActive( NULL )
{
OUString aLibraryName( RTL_CONSTASCII_USTRINGPARAM( "uxtheme.dll" ) );
OUString aLibraryName( "uxtheme.dll" );
mhModule = osl_loadModule( aLibraryName.pData, SAL_LOADMODULE_DEFAULT );
if ( mhModule )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment