summaryrefslogtreecommitdiff
path: root/sd
diff options
context:
space:
mode:
authorTor Lillqvist <tml@collabora.com>2015-11-04 11:01:59 +0200
committerTor Lillqvist <tml@collabora.com>2015-11-04 11:02:17 +0200
commit9a4e46bf8e258068443081b2eed42fc57b7041b1 (patch)
tree5d214165c3bc5f7714b4aacef9c9aff2ac23561c /sd
parent16e4bbf44c4b2a95e26c331804940181c0fa1d86 (diff)
Bin some use-once variables, use literals instead
Change-Id: Ic6e3540dce776b7851e41124d8dcceec73aadb4b
Diffstat (limited to 'sd')
-rw-r--r--sd/source/ui/view/drviews2.cxx12
1 files changed, 3 insertions, 9 deletions
diff --git a/sd/source/ui/view/drviews2.cxx b/sd/source/ui/view/drviews2.cxx
index 0542f0c928aa..5006e6ff9161 100644
--- a/sd/source/ui/view/drviews2.cxx
+++ b/sd/source/ui/view/drviews2.cxx
@@ -174,12 +174,6 @@
#include "ViewShellBase.hxx"
#include <memory>
-namespace {
- const char CustomAnimationPanelId[] = "SdCustomAnimationPanel";
- const char SlideTransitionPanelId[] = "SdSlideTransitionPanel";
- const char GalleryPanelId[] = "GalleryPanel";
-}
-
using namespace ::com::sun::star;
using namespace ::com::sun::star::uno;
@@ -2718,11 +2712,11 @@ void DrawViewShell::FuTemporary(SfxRequest& rReq)
OUString panelId;
if (nSId == SID_CUSTOM_ANIMATION_PANEL)
- panelId = CustomAnimationPanelId;
+ panelId = "SdCustomAnimationPanel";
else if (nSId == SID_GALLERY)
- panelId = GalleryPanelId;
+ panelId = "GalleryPanel";
else if (nSId == SID_SLIDE_TRANSITIONS_PANEL)
- panelId = SlideTransitionPanelId;
+ panelId = "SdSlideTransitionPanel";
::sfx2::sidebar::Sidebar::ShowPanel(
panelId,