[Libreoffice-commits] .: Branch 'libreoffice-3-3' - sfx2/source

Petr Mladek pmladek at kemper.freedesktop.org
Tue Dec 14 09:29:27 PST 2010


 sfx2/source/menu/virtmenu.cxx |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

New commits:
commit fae626b938106e00d8f4dfb5c4ca8e9294b37c30
Author: David Tardon <dtardon at redhat.com>
Date:   Sun Dec 12 10:03:13 2010 +0100

    fdo#31716 the help text is not used for anything -- do not set it
    
    Signed-off-by: Petr Mladek <pmladek at suse.cz>

diff --git a/sfx2/source/menu/virtmenu.cxx b/sfx2/source/menu/virtmenu.cxx
index 2aee922..c499ee8 100644
--- a/sfx2/source/menu/virtmenu.cxx
+++ b/sfx2/source/menu/virtmenu.cxx
@@ -409,7 +409,7 @@ void SfxVirtualMenu::CreateFromSVMenu()
         }
 
         const String sItemText = pSVMenu->GetItemText(nSlotId);
-        const String sHelpText = pSVMenu->GetHelpText(nSlotId);
+        const String sHelpText; // not used for anything -> just empty string
 
         if ( pPopup )
         {
@@ -815,7 +815,7 @@ bool SfxVirtualMenu::Bind_Impl( Menu *pMenu )
                 DBG_OUTF( ("Neues VirtualMenu %lx erzeugt", pSubMenu) );
 
                 rCtrl.Bind( this, nSID, *pSubMenu,
-                    pSVMenu->GetItemText(nSID), pSVMenu->GetHelpText(nSID),
+                    pSVMenu->GetItemText(nSID), String(),
                     *pBindings );
 
                 // Activate weiterleiten
@@ -1331,7 +1331,7 @@ void SfxVirtualMenu::InitPopup( USHORT nPos, BOOL /*bOLE*/ )
         DBG_OUTF( ("Neues VirtualMenu %lx erzeugt", pSubMenu) );
 
         rCtrl.Bind( this, nSID, *pSubMenu,
-            pSVMenu->GetItemText(nSID), pSVMenu->GetHelpText(nSID),
+            pSVMenu->GetItemText(nSID), String(),
             *pBindings );
     }
 }


More information about the Libreoffice-commits mailing list