From cbce40e965acef51822b31d73da5fbc271fbcad0 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Thu, 9 Jul 2015 08:50:37 +0200 Subject: Make content of OSL_ASSERT, DBG_ASSERT, etc. visiblie in non-debug builds ...to avoid lots of loplugin:staticmethods warnings. Also enables DBG_ASSERT etc. also for --enable-debug builds in addition to --enable-dbgutil builds. Change-Id: Ib89ecd9ab8ce7abb2c64790ace248b31f9d2b64d --- cui/source/dialogs/cuifmsearch.cxx | 5 +---- cui/source/tabpages/chardlg.cxx | 2 -- 2 files changed, 1 insertion(+), 6 deletions(-) (limited to 'cui') diff --git a/cui/source/dialogs/cuifmsearch.cxx b/cui/source/dialogs/cuifmsearch.cxx index 2a5c31f5c199..981ff315dcee 100644 --- a/cui/source/dialogs/cuifmsearch.cxx +++ b/cui/source/dialogs/cuifmsearch.cxx @@ -528,10 +528,7 @@ void FmSearchDialog::InitContext(sal_Int16 nContext) FmSearchContext fmscContext; fmscContext.nContext = nContext; -#ifdef DBG_UTIL - sal_uInt32 nResult = -#endif - m_lnkContextSupplier.Call(&fmscContext); + sal_uInt32 nResult = m_lnkContextSupplier.Call(&fmscContext); DBG_ASSERT(nResult > 0, "FmSearchDialog::InitContext : ContextSupplier didn't give me any controls !"); // put the field names into the respective listbox diff --git a/cui/source/tabpages/chardlg.cxx b/cui/source/tabpages/chardlg.cxx index 2b48fde9d54c..cb9b8be5a27c 100644 --- a/cui/source/tabpages/chardlg.cxx +++ b/cui/source/tabpages/chardlg.cxx @@ -2904,9 +2904,7 @@ IMPL_LINK_NOARG(SvxCharPositionPage, KerningModifyHdl_Impl) IMPL_LINK( SvxCharPositionPage, LoseFocusHdl_Impl, MetricField*, pField ) { -#ifdef DBG_UTIL bool bHigh = m_pHighPosBtn->IsChecked(); -#endif bool bLow = m_pLowPosBtn->IsChecked(); DBG_ASSERT( bHigh || bLow, "normal position is not valid" ); -- cgit