diff options
author | Tor Lillqvist <tml@iki.fi> | 2012-04-03 23:45:26 +0300 |
---|---|---|
committer | Tor Lillqvist <tml@iki.fi> | 2012-04-04 01:05:48 +0300 |
commit | 2b00b0e0a1a47c3d174ee9e86826b60a356f3dbf (patch) | |
tree | 804a9ff4811e466070ca43cb849ce0dde8eaec83 /framework | |
parent | 3b4941eddaa3bf0e23952613b091d8f54d898d29 (diff) |
WaE: call to pure virtual member function
Diffstat (limited to 'framework')
-rw-r--r-- | framework/source/classes/menumanager.cxx | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/framework/source/classes/menumanager.cxx b/framework/source/classes/menumanager.cxx index 4b0af601d076..202b7eba5cd0 100644 --- a/framework/source/classes/menumanager.cxx +++ b/framework/source/classes/menumanager.cxx @@ -146,8 +146,14 @@ MenuManager::MenuManager( m_xFrame = rFrame; m_bInitialized = sal_False; m_bIsBookmarkMenu = sal_False; +#ifdef LIBO_WERROR + // Wtf? Clang says: call to pure virtual member function + // 'acquire'; overrides of 'acquire' in subclasses are not + // available in the constructor of 'XInterface' + assert(!"Call to pure virtual member function"); +#else SAL_STATIC_CAST( ::com::sun::star::uno::XInterface*, (OWeakObject*)this )->acquire(); - +#endif const StyleSettings& rSettings = Application::GetSettings().GetStyleSettings(); m_bShowMenuImages = rSettings.GetUseImagesInMenus(); |