Kaydet (Commit) 7e9ac595 authored tarafından Tor Lillqvist's avatar Tor Lillqvist

We don't need CreateDialogFactory() for non-DESKTOP, I think

Change-Id: Iced798f51fc2a46ede0c8e67d63941eca69ad208
üst 064c6288
......@@ -17,6 +17,7 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
#include <config_features.h>
#include <rtl/ustring.hxx>
#include <osl/module.hxx>
......@@ -33,6 +34,7 @@ extern "C" VclAbstractDialogFactory* CreateDialogFactory();
VclAbstractDialogFactory* VclAbstractDialogFactory::Create()
{
FuncPtrCreateDialogFactory fp = 0;
#if HAVE_FEATURE_DESKTOP
#ifndef DISABLE_DYNLOADING
static ::osl::Module aDialogLibrary;
if ( aDialogLibrary.is() || aDialogLibrary.loadRelative( &thisModule, OUString( CUI_DLL_NAME ),
......@@ -41,6 +43,7 @@ VclAbstractDialogFactory* VclAbstractDialogFactory::Create()
aDialogLibrary.getFunctionSymbol( OUString("CreateDialogFactory") );
#else
fp = CreateDialogFactory;
#endif
#endif
if ( fp )
return fp();
......
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