From 01392c4a60e1bcba839a06471300312593e15de4 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Tue, 10 Jan 2017 09:03:39 +0000 Subject: WaE: -Wunused-function with dbconnectivity disabled Change-Id: Ief9a3b478d904dd12f51dc7e4373a8273f209635 --- sw/source/uibase/app/apphdl.cxx | 33 +++++++++++++++------------------ 1 file changed, 15 insertions(+), 18 deletions(-) (limited to 'sw/source/uibase/app') 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 -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()) -- cgit