summaryrefslogtreecommitdiff
path: root/sw/source/uibase/app
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2017-09-08 10:36:35 +0100
committerCaolán McNamara <caolanm@redhat.com>2017-09-18 14:32:50 +0200
commit91c9026917ef930ab5f532ca62383a4dd6c0537c (patch)
tree8f91145ab5eb820523f439ca07457e83ca2d8306 /sw/source/uibase/app
parent2b74f20c67bc23f3321d8d9425300d363646f594 (diff)
add fodt fuzzer
Change-Id: I3e4de4b9dab96f0e4bc9ca90896c2c54ae66ca20 Reviewed-on: https://gerrit.libreoffice.org/42251 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sw/source/uibase/app')
-rw-r--r--sw/source/uibase/app/swdll.cxx4
-rw-r--r--sw/source/uibase/app/swmodule.cxx4
2 files changed, 4 insertions, 4 deletions
diff --git a/sw/source/uibase/app/swdll.cxx b/sw/source/uibase/app/swdll.cxx
index d47a700af7a2..5bbee4388b53 100644
--- a/sw/source/uibase/app/swdll.cxx
+++ b/sw/source/uibase/app/swdll.cxx
@@ -89,7 +89,7 @@ SwDLL::SwDLL()
xOpt.reset(new SvtModuleOptions);
SfxObjectFactory* pDocFact = nullptr;
SfxObjectFactory* pGlobDocFact = nullptr;
- if (xOpt && xOpt->IsWriter())
+ if (!xOpt || xOpt->IsWriter())
{
pDocFact = &SwDocShell::Factory();
pGlobDocFact = &SwGlobalDocShell::Factory();
@@ -103,7 +103,7 @@ SwDLL::SwDLL()
pWDocFact->SetDocumentServiceName("com.sun.star.text.WebDocument");
- if (xOpt && xOpt->IsWriter())
+ if (!xOpt || xOpt->IsWriter())
{
pGlobDocFact->SetDocumentServiceName("com.sun.star.text.GlobalDocument");
pDocFact->SetDocumentServiceName("com.sun.star.text.TextDocument");
diff --git a/sw/source/uibase/app/swmodule.cxx b/sw/source/uibase/app/swmodule.cxx
index 962f7e7f14f1..72af465176a9 100644
--- a/sw/source/uibase/app/swmodule.cxx
+++ b/sw/source/uibase/app/swmodule.cxx
@@ -235,13 +235,13 @@ void SwDLL::RegisterFactories()
{
// These Id's must not be changed. Through these Id's the View (resume Documentview)
// is created by Sfx.
- if (!utl::ConfigManager::IsAvoidConfig() && SvtModuleOptions().IsWriter())
+ if (utl::ConfigManager::IsAvoidConfig() || SvtModuleOptions().IsWriter())
SwView::RegisterFactory ( SFX_INTERFACE_SFXDOCSH );
#if HAVE_FEATURE_DESKTOP
SwWebView::RegisterFactory ( SFX_INTERFACE_SFXMODULE );
- if (!utl::ConfigManager::IsAvoidConfig() && SvtModuleOptions().IsWriter())
+ if (utl::ConfigManager::IsAvoidConfig() || SvtModuleOptions().IsWriter())
{
SwSrcView::RegisterFactory ( SfxInterfaceId(6) );
SwPagePreview::RegisterFactory ( SfxInterfaceId(7) );