summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJochen Nitschke <j.nitschke+logerrit@ok.de>2016-04-18 09:05:46 +0000
committerStephan Bergmann <sbergman@redhat.com>2016-04-18 15:54:48 +0000
commit322eaf80a777117548d05bf350c3b569877a033b (patch)
treecf36afc337697d19767750617dc6e6d7b8fa8df4
parentd9508c82330ffce6b20fb7ed13c7bcc01f298053 (diff)
cppcheck: silence known condition warning in forms
Change-Id: I191dc169eea01d49ee357716a6bcc249e91437ec Reviewed-on: https://gerrit.libreoffice.org/24201 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
-rw-r--r--forms/source/richtext/richtextcontrol.cxx10
1 files changed, 3 insertions, 7 deletions
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 );