diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2016-10-31 12:40:01 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2016-10-31 13:17:54 +0000 |
commit | 06babf60ce9edd17e02930e60b9afdc12b40b553 (patch) | |
tree | bfb4b8c397d99b7aa6f1fb8670d3b48f4074d242 /svx/source/sidebar | |
parent | c8b09c0024cc8fb5444ca422d2ddf729a5117d1d (diff) |
loplugin:oncevar in svl..svx
Change-Id: I80b11a7b698de4b84d7a2f4c7dc62b2e4fd8bb01
Reviewed-on: https://gerrit.libreoffice.org/30438
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svx/source/sidebar')
-rw-r--r-- | svx/source/sidebar/possize/PosSizePropertyPanel.cxx | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/svx/source/sidebar/possize/PosSizePropertyPanel.cxx b/svx/source/sidebar/possize/PosSizePropertyPanel.cxx index 21c485f19f7a..ed22fa0331c1 100644 --- a/svx/source/sidebar/possize/PosSizePropertyPanel.cxx +++ b/svx/source/sidebar/possize/PosSizePropertyPanel.cxx @@ -41,9 +41,6 @@ using namespace css; using namespace css::uno; -const char UNO_FLIPHORIZONTAL[] = ".uno:FlipHorizontal"; -const char UNO_FLIPVERTICAL[] = ".uno:FlipVertical"; - const char USERITEM_NAME[] = "FitItem"; namespace svx { namespace sidebar { @@ -489,13 +486,13 @@ IMPL_LINK( PosSizePropertyPanel, FlipHdl, ToolBox*, pBox, void ) { const OUString aCommand(pBox->GetItemCommand(pBox->GetCurItemId())); - if(aCommand == UNO_FLIPHORIZONTAL) + if(aCommand == ".uno:FlipHorizontal") { SfxVoidItem aHoriItem(SID_FLIP_HORIZONTAL); GetBindings()->GetDispatcher()->ExecuteList(SID_FLIP_HORIZONTAL, SfxCallMode::RECORD, { &aHoriItem }); } - else if(aCommand == UNO_FLIPVERTICAL) + else if(aCommand == ".uno:FlipVertical") { SfxVoidItem aVertItem(SID_FLIP_VERTICAL); GetBindings()->GetDispatcher()->ExecuteList(SID_FLIP_VERTICAL, |