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

Maxim Monastirsky momonasmon at gmail.com
Tue Jan 5 13:40:27 PST 2016


 svx/source/tbxctrls/tbxdrctl.cxx |   11 +++--------
 1 file changed, 3 insertions(+), 8 deletions(-)

New commits:
commit cdd14dbd7858b35c3ac999c039bd22c52b4852b2
Author: Maxim Monastirsky <momonasmon at gmail.com>
Date:   Tue Jan 5 22:55:42 2016 +0200

    Kill one indentation level
    
    Change-Id: Id7a7b33dbfc902fcf5130f3dc8ae23012d1f2310

diff --git a/svx/source/tbxctrls/tbxdrctl.cxx b/svx/source/tbxctrls/tbxdrctl.cxx
index a7de724..43af4f8 100644
--- a/svx/source/tbxctrls/tbxdrctl.cxx
+++ b/svx/source/tbxctrls/tbxdrctl.cxx
@@ -56,16 +56,11 @@ void SAL_CALL SvxTbxCtlDraw::initialize( const css::uno::Sequence< css::uno::Any
      * difference.
      */
     if( m_aCommandURL==".uno:TrackChangesBar")
-    {
         m_sToolboxName="private:resource/toolbar/changes";
-    }
+    else if ( m_sModuleName == "com.sun.star.presentation.PresentationDocument" || m_sModuleName == "com.sun.star.drawing.DrawingDocument" )
+        m_sToolboxName="private:resource/toolbar/toolbar";
     else
-    {
-        if ( m_sModuleName == "com.sun.star.presentation.PresentationDocument" || m_sModuleName == "com.sun.star.drawing.DrawingDocument" )
-            m_sToolboxName="private:resource/toolbar/toolbar";
-        else
-            m_sToolboxName="private:resource/toolbar/drawbar";
-    }
+        m_sToolboxName="private:resource/toolbar/drawbar";
 }
 
 


More information about the Libreoffice-commits mailing list