summaryrefslogtreecommitdiff
path: root/svx/source/accessibility/ChildrenManagerImpl.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2016-10-31 12:40:01 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2016-10-31 13:17:54 +0000
commit06babf60ce9edd17e02930e60b9afdc12b40b553 (patch)
treebfb4b8c397d99b7aa6f1fb8670d3b48f4074d242 /svx/source/accessibility/ChildrenManagerImpl.cxx
parentc8b09c0024cc8fb5444ca422d2ddf729a5117d1d (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/accessibility/ChildrenManagerImpl.cxx')
-rw-r--r--svx/source/accessibility/ChildrenManagerImpl.cxx8
1 files changed, 2 insertions, 6 deletions
diff --git a/svx/source/accessibility/ChildrenManagerImpl.cxx b/svx/source/accessibility/ChildrenManagerImpl.cxx
index d6c5ba71bff8..74fb7e481c4e 100644
--- a/svx/source/accessibility/ChildrenManagerImpl.cxx
+++ b/svx/source/accessibility/ChildrenManagerImpl.cxx
@@ -657,13 +657,9 @@ void SAL_CALL
const document::EventObject& rEventObject)
throw (uno::RuntimeException, std::exception)
{
- static const char sShapeInserted[] = "ShapeInserted";
- static const char sShapeRemoved[] = "ShapeRemoved";
-
-
- if (rEventObject.EventName == sShapeInserted)
+ if (rEventObject.EventName == "ShapeInserted")
AddShape (Reference<drawing::XShape>(rEventObject.Source, uno::UNO_QUERY));
- else if (rEventObject.EventName == sShapeRemoved)
+ else if (rEventObject.EventName == "ShapeRemoved")
RemoveShape (Reference<drawing::XShape>(rEventObject.Source, uno::UNO_QUERY));
// else ignore unknown event.
}