diff options
author | Jochen Nitschke <j.nitschke+logerrit@ok.de> | 2016-04-18 09:05:46 +0000 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2016-04-18 15:54:48 +0000 |
commit | 322eaf80a777117548d05bf350c3b569877a033b (patch) | |
tree | cf36afc337697d19767750617dc6e6d7b8fa8df4 /forms | |
parent | d9508c82330ffce6b20fb7ed13c7bcc01f298053 (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>
Diffstat (limited to 'forms')
-rw-r--r-- | forms/source/richtext/richtextcontrol.cxx | 10 |
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 ); |