Date: prev next · Thread: first prev next last
2011 Archives by date, by thread · List index


No, this is not more dead code this time :). I noticed this and I'm pretty
confident the code is sloppy. It's my first time deliberately touching the
code, so sorry if it's a bit small.

License LGPLv3+/MPL.

Luke
From ade4b654cba3753b184310fd96c9b38c2fb0507b Mon Sep 17 00:00:00 2001
From: Luke Petrolekas <luke.petrolekas@gmail.com>
Date: Thu, 26 May 2011 18:42:13 -0400
Subject: [PATCH] Simply the code.

---
 xmlsecurity/source/dialogs/stbcontrl.cxx |    8 +-------
 1 files changed, 1 insertions(+), 7 deletions(-)

diff --git a/xmlsecurity/source/dialogs/stbcontrl.cxx b/xmlsecurity/source/dialogs/stbcontrl.cxx
index 68729ad..f506439 100644
--- a/xmlsecurity/source/dialogs/stbcontrl.cxx
+++ b/xmlsecurity/source/dialogs/stbcontrl.cxx
@@ -95,13 +95,7 @@ void XmlSecStatusBarControl::StateChanged( sal_uInt16 nSID, SfxItemState eState,
 void XmlSecStatusBarControl::Command( const CommandEvent& rCEvt )
 {
     // can / has to be done when integrated in Office!
-//     if( rCEvt.GetCommand() == .... )
-    if( false )
-    {
-//             GetBindings().GetDispatcher()->Execute( SID_PSZ_FUNCTION, SFX_CALLMODE_RECORD, 
&aItem, 0L );
-    }
-    else
-        SfxStatusBarControl::Command( rCEvt );
+    SfxStatusBarControl::Command( rCEvt );
 }
 
 void XmlSecStatusBarControl::Paint( const UserDrawEvent& rUsrEvt )
-- 
1.7.1


Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.