summaryrefslogtreecommitdiff
path: root/sw/source/uibase/app
diff options
context:
space:
mode:
authorMichael Meeks <michael.meeks@collabora.com>2018-02-12 12:04:23 +0100
committerMichael Meeks <michael.meeks@collabora.com>2018-02-12 15:57:24 +0100
commit93eef21ce1f74c848fcf0ad4f4eab7a8167a39a8 (patch)
tree74c5756003c80841da816962d363cf88f010c428 /sw/source/uibase/app
parent89202f2d76a92866ed3f3887d690e4fc45658e22 (diff)
Disable lok_preload_hooks when not dynamically loading.
Change-Id: I00f1e8978607f450d3ad33f4515be1fc962c0332 Reviewed-on: https://gerrit.libreoffice.org/49591 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
Diffstat (limited to 'sw/source/uibase/app')
-rw-r--r--sw/source/uibase/app/swdll.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/sw/source/uibase/app/swdll.cxx b/sw/source/uibase/app/swdll.cxx
index 7df0cec3a0db..a126f56524ea 100644
--- a/sw/source/uibase/app/swdll.cxx
+++ b/sw/source/uibase/app/swdll.cxx
@@ -172,10 +172,14 @@ sw::Filters & SwDLL::getFilters()
return *filters_.get();
}
+#ifndef DISABLE_DYNLOADING
+
extern "C" SAL_DLLPUBLIC_EXPORT
void lok_preload_hook()
{
SwAbstractDialogFactory::Create();
}
+#endif
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */