From 322eaf80a777117548d05bf350c3b569877a033b Mon Sep 17 00:00:00 2001 From: Jochen Nitschke Date: Mon, 18 Apr 2016 09:05:46 +0000 Subject: cppcheck: silence known condition warning in forms Change-Id: I191dc169eea01d49ee357716a6bcc249e91437ec Reviewed-on: https://gerrit.libreoffice.org/24201 Tested-by: Jenkins Reviewed-by: Stephan Bergmann --- forms/source/richtext/richtextcontrol.cxx | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'forms/source/richtext/richtextcontrol.cxx') diff --git a/forms/source/richtext/richtextcontrol.cxx b/forms/source/richtext/richtextcontrol.cxx index c535f5a100c3..471df8e83ec0 100644 --- a/forms/source/richtext/richtextcontrol.cxx +++ b/forms/source/richtext/richtextcontrol.cxx @@ -508,13 +508,9 @@ namespace frm default: { - // is it a supported slot? - bool bSupportedSlot = false; - if ( !bSupportedSlot ) - { - const SfxItemPool& rPool = *pRichTextControl->getView().GetEmptyItemSet().GetPool(); - bSupportedSlot = rPool.IsInRange( rPool.GetWhich( _nSlotId ) ); - } + const SfxItemPool& rPool = *pRichTextControl->getView().GetEmptyItemSet().GetPool(); + bool bSupportedSlot = rPool.IsInRange( rPool.GetWhich( _nSlotId ) ); + if ( !bSupportedSlot ) bSupportedSlot = RichTextControl::isMappableSlot( _nSlotId ); -- cgit