[Bug 54938] Adapt supportsService implementations to cppu::supportsService

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Tue Feb 11 23:12:29 CET 2014


https://bugs.freedesktop.org/show_bug.cgi?id=54938

--- Comment #55 from Alexandre Vicenzi <vicenzi.alexandre at gmail.com> ---
Stephan,

I'm trying to adjust PopupMenuToolbarController
(framework/source/uielement/popuptoolbarcontroller.cxx), but I'm getting some
errors.

I tried this approach:

class PopupMenuToolbarController : public ::cppu::WeakImplHelper2<
svt::ToolboxController, css::lang::XServiceInfo >

And I get these errors:

In file included from
./framework/source/uielement/popuptoolbarcontroller.cxx:21:0:
./include/cppuhelper/implbase2.hxx: In instantiation of ‘class
cppu::WeakImplHelper2<svt::ToolboxController,
com::sun::star::lang::XServiceInfo>’:
./framework/source/uielement/popuptoolbarcontroller.cxx:50:51:   required from
here
./include/cppuhelper/implbase2.hxx:94:69: warning: direct base
‘cppu::OWeakObject’ inaccessible in
‘cppu::WeakImplHelper2<svt::ToolboxController,
com::sun::star::lang::XServiceInfo>’ due to ambiguity [enabled by default]
     class SAL_NO_VTABLE SAL_DLLPUBLIC_TEMPLATE SAL_DLLPUBLIC_EXPORT
WeakImplHelper2
                                                                     ^
./framework/source/uielement/popuptoolbarcontroller.cxx: In constructor
‘{anonymous}::PopupMenuToolbarController::PopupMenuToolbarController(const
com::sun::star::uno::Reference<com::sun::star::uno::XComponentContext>&, const
rtl::OUString&)’:
./framework/source/uielement/popuptoolbarcontroller.cxx:84:12: error: type
‘svt::ToolboxController’ is not a direct base of
‘{anonymous}::PopupMenuToolbarController’
     : svt::ToolboxController()

What I'm missing? Or what is the correct way to do this. I tried multiple
inheritance and didn't work too.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/libreoffice/attachments/20140211/593f4ced/attachment.html>


More information about the LibreOffice mailing list