[Libreoffice-commits] core.git: framework/source include/vcl

Stephan Bergmann sbergman at redhat.com
Wed Nov 18 13:11:08 PST 2015


 framework/source/uielement/menubarmanager.cxx |    1 -
 include/vcl/sysdata.hxx                       |    1 -
 2 files changed, 2 deletions(-)

New commits:
commit f1132fd50a2c5c0e3de5656382b4cea1e826e520
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Wed Nov 18 16:54:32 2015 +0100

    SystemMenuData::nSize is never read
    
    ...and of little use if all users of SystemMenuData agree on the definition in
    vcl/sysdata.hxx
    
    Change-Id: Id102a30074b611e3ad37ce69ce27c929f4505495
    Reviewed-on: https://gerrit.libreoffice.org/20044
    Reviewed-by: Stephan Bergmann <sbergman at redhat.com>
    Tested-by: Stephan Bergmann <sbergman at redhat.com>

diff --git a/framework/source/uielement/menubarmanager.cxx b/framework/source/uielement/menubarmanager.cxx
index 346757a..3f44ebe 100644
--- a/framework/source/uielement/menubarmanager.cxx
+++ b/framework/source/uielement/menubarmanager.cxx
@@ -205,7 +205,6 @@ Any SAL_CALL MenuBarManager::getMenuHandle( const Sequence< sal_Int8 >& /*Proces
     if ( m_pVCLMenu )
     {
         SystemMenuData aSystemMenuData;
-        aSystemMenuData.nSize = sizeof( SystemMenuData );
 
         m_pVCLMenu->GetSystemMenuData( &aSystemMenuData );
 #ifdef _WIN32
diff --git a/include/vcl/sysdata.hxx b/include/vcl/sysdata.hxx
index 2c50797..5ae9947 100644
--- a/include/vcl/sysdata.hxx
+++ b/include/vcl/sysdata.hxx
@@ -120,7 +120,6 @@ struct SystemParentData
 
 struct SystemMenuData
 {
-    unsigned long   nSize;          // size in bytes of this structure
 #if defined( WNT )
     HMENU           hMenu;          // the menu handle of the menu bar
 #elif defined( MACOSX )


More information about the Libreoffice-commits mailing list