[Libreoffice-commits] core.git: sd/source

Tor Lillqvist tml at collabora.com
Wed Nov 4 01:02:52 PST 2015


 sd/source/ui/view/drviews2.cxx |   12 +++---------
 1 file changed, 3 insertions(+), 9 deletions(-)

New commits:
commit 9a4e46bf8e258068443081b2eed42fc57b7041b1
Author: Tor Lillqvist <tml at collabora.com>
Date:   Wed Nov 4 11:01:59 2015 +0200

    Bin some use-once variables, use literals instead
    
    Change-Id: Ic6e3540dce776b7851e41124d8dcceec73aadb4b

diff --git a/sd/source/ui/view/drviews2.cxx b/sd/source/ui/view/drviews2.cxx
index 0542f0c..5006e6f 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,


More information about the Libreoffice-commits mailing list