diff options
author | Caolán McNamara <caolanm@redhat.com> | 2017-01-10 09:03:39 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2017-01-10 09:03:39 +0000 |
commit | 01392c4a60e1bcba839a06471300312593e15de4 (patch) | |
tree | 7d272c25f8d4b79b3c0a46019851570b4d3d659b /sw/source/uibase/app/apphdl.cxx | |
parent | 7aad85c4f5bfd33ce7fdb17643ae16b6b87f7632 (diff) |
WaE: -Wunused-function with dbconnectivity disabled
Change-Id: Ief9a3b478d904dd12f51dc7e4373a8273f209635
Diffstat (limited to 'sw/source/uibase/app/apphdl.cxx')
-rw-r--r-- | sw/source/uibase/app/apphdl.cxx | 33 |
1 files changed, 15 insertions, 18 deletions
diff --git a/sw/source/uibase/app/apphdl.cxx b/sw/source/uibase/app/apphdl.cxx index 816f0f276a53..eaaabf930734 100644 --- a/sw/source/uibase/app/apphdl.cxx +++ b/sw/source/uibase/app/apphdl.cxx @@ -114,24 +114,6 @@ using namespace ::com::sun::star; #include <shells.hrc> -namespace -{ - bool lcl_hasAllComponentsAvailable() - { - try - { - return css::sdb::TextConnectionSettings::create(comphelper::getProcessComponentContext()).is(); - } - catch (css::uno::Exception & e) - { - SAL_INFO( - "sw.core", - "assuming Base to be missing; caught " << e.Message); - return false; - } - } -} - SFX_IMPL_INTERFACE(SwModule, SfxModule) void SwModule::InitInterface_Impl() @@ -408,6 +390,21 @@ SwMailMergeWizardExecutor::~SwMailMergeWizardExecutor() OSL_ENSURE( m_pWizard == nullptr, "SwMailMergeWizardExecutor: m_pWizard must be Null!" ); } +bool lcl_hasAllComponentsAvailable() +{ + try + { + return css::sdb::TextConnectionSettings::create(comphelper::getProcessComponentContext()).is(); + } + catch (css::uno::Exception & e) + { + SAL_INFO( + "sw.core", + "assuming Base to be missing; caught " << e.Message); + return false; + } +} + void SwMailMergeWizardExecutor::ExecuteMailMergeWizard( const SfxItemSet * pArgs ) { if(!lcl_hasAllComponentsAvailable()) |