Kaydet (Commit) 729af052 authored tarafından Tor Lillqvist's avatar Tor Lillqvist

Make ScAbstractDialogFactory::Create() do its job also on non-DESKTOP

Change-Id: Id97c9ead810f266239898cc559172b841bc6902f
üst 1bfd9d0d
...@@ -17,8 +17,6 @@ ...@@ -17,8 +17,6 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 . * the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/ */
#include <config_features.h>
#include <scabstdlg.hxx> #include <scabstdlg.hxx>
#include <osl/module.hxx> #include <osl/module.hxx>
...@@ -40,7 +38,6 @@ extern "C" ScAbstractDialogFactory* ScCreateDialogFactory(); ...@@ -40,7 +38,6 @@ extern "C" ScAbstractDialogFactory* ScCreateDialogFactory();
ScAbstractDialogFactory* ScAbstractDialogFactory::Create() ScAbstractDialogFactory* ScAbstractDialogFactory::Create()
{ {
ScFuncPtrCreateDialogFactory fp = nullptr; ScFuncPtrCreateDialogFactory fp = nullptr;
#if HAVE_FEATURE_DESKTOP
#ifndef DISABLE_DYNLOADING #ifndef DISABLE_DYNLOADING
static ::osl::Module aDialogLibrary; static ::osl::Module aDialogLibrary;
...@@ -53,7 +50,6 @@ ScAbstractDialogFactory* ScAbstractDialogFactory::Create() ...@@ -53,7 +50,6 @@ ScAbstractDialogFactory* ScAbstractDialogFactory::Create()
aDialogLibrary.getFunctionSymbol( "ScCreateDialogFactory" )); aDialogLibrary.getFunctionSymbol( "ScCreateDialogFactory" ));
#else #else
fp = ScCreateDialogFactory; fp = ScCreateDialogFactory;
#endif
#endif #endif
if ( fp ) if ( fp )
return 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