diff options
author | Herbert Dürr <hdu@apache.org> | 2012-05-03 12:45:19 +0000 |
---|---|---|
committer | Herbert Dürr <hdu@apache.org> | 2012-05-03 12:45:19 +0000 |
commit | 9f5696dfa2241a28916727bc4bf82959b2bc1363 (patch) | |
tree | 3cd655f1281f602b842fa42f8ff65e5b9ef38459 /vcl/unx/generic/app/randrwrapper.cxx | |
parent | 01ef7825c9c9abc9d4515f417773c12f603d8e6c (diff) |
use ascii convenience methods for dynamic loading
Notes
Notes:
prefer: b5f1139427b40ca727a03e2e41aa5625cfb08bb8
Diffstat (limited to 'vcl/unx/generic/app/randrwrapper.cxx')
-rw-r--r-- | vcl/unx/generic/app/randrwrapper.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/vcl/unx/generic/app/randrwrapper.cxx b/vcl/unx/generic/app/randrwrapper.cxx index cc4db6dc98b2..753be4f123b4 100644 --- a/vcl/unx/generic/app/randrwrapper.cxx +++ b/vcl/unx/generic/app/randrwrapper.cxx @@ -152,14 +152,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_loadAsciiModule( "libXrandr.so.2", SAL_LOADMODULE_DEFAULT | SAL_LOADMODULE_NOW ); initFromModule(); } if( m_bValid ) |