Author: hdu Date: Fri Apr 19 09:52:00 2013 New Revision: 1469766 URL: http://svn.apache.org/r1469766 Log: WaE: fix "call to pure virtual member function" warning
reported by clang. The strange casting seems to be a leftover from times before the MenuManager::acquire() method was added. Modified: openoffice/trunk/main/framework/source/classes/menumanager.cxx Modified: openoffice/trunk/main/framework/source/classes/menumanager.cxx URL: http://svn.apache.org/viewvc/openoffice/trunk/main/framework/source/classes/menumanager.cxx?rev=1469766&r1=1469765&r2=1469766&view=diff ============================================================================== --- openoffice/trunk/main/framework/source/classes/menumanager.cxx (original) +++ openoffice/trunk/main/framework/source/classes/menumanager.cxx Fri Apr 19 09:52:00 2013 @@ -147,7 +147,8 @@ MenuManager::MenuManager( m_xFrame = rFrame; m_bInitialized = sal_False; m_bIsBookmarkMenu = sal_False; - SAL_STATIC_CAST( ::com::sun::star::uno::XInterface*, (OWeakObject*)this )->acquire(); + + acquire(); const StyleSettings& rSettings = Application::GetSettings().GetStyleSettings(); m_bWasHiContrast = rSettings.GetHighContrastMode();