summaryrefslogtreecommitdiff
path: root/sfx2/source/toolbox
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2018-01-15 09:03:18 +0100
committerStephan Bergmann <sbergman@redhat.com>2018-01-15 09:03:18 +0100
commit9d1c14ce4c47030f8315f1f6b04d9314d3f62f48 (patch)
treee9df0eab541cf0de54a54e4a63ae1d237844b881 /sfx2/source/toolbox
parentb20ccaf2bc25997563f00aca4b47ae5353140030 (diff)
More loplugin:cstylecast: sfx2
Change-Id: Ifdb964558f070e7c9ee87eabeaafa5c3c079c0c9
Diffstat (limited to 'sfx2/source/toolbox')
-rw-r--r--sfx2/source/toolbox/tbxitem.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sfx2/source/toolbox/tbxitem.cxx b/sfx2/source/toolbox/tbxitem.cxx
index 4a08477c5339..9dfa94a8eafa 100644
--- a/sfx2/source/toolbox/tbxitem.cxx
+++ b/sfx2/source/toolbox/tbxitem.cxx
@@ -490,7 +490,7 @@ void SAL_CALL SfxToolBoxControl::statusChanged( const FeatureStateEvent& rEvent
{
ItemStatus aItemStatus;
rEvent.State >>= aItemStatus;
- SfxItemState tmpState = (SfxItemState) aItemStatus.State;
+ SfxItemState tmpState = static_cast<SfxItemState>(aItemStatus.State);
// make sure no-one tries to send us a combination of states
if (tmpState != SfxItemState::UNKNOWN && tmpState != SfxItemState::DISABLED &&
tmpState != SfxItemState::READONLY && tmpState != SfxItemState::DONTCARE &&