<html>
<head>
<base href="https://bugs.freedesktop.org/" />
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_ASSIGNED "
title="ASSIGNED --- - Adapt supportsService implementations to cppu::supportsService"
href="https://bugs.freedesktop.org/show_bug.cgi?id=54938#c55">Comment # 55</a>
on <a class="bz_bug_link
bz_status_ASSIGNED "
title="ASSIGNED --- - Adapt supportsService implementations to cppu::supportsService"
href="https://bugs.freedesktop.org/show_bug.cgi?id=54938">bug 54938</a>
from <span class="vcard"><a class="email" href="mailto:vicenzi.alexandre@gmail.com" title="Alexandre Vicenzi <vicenzi.alexandre@gmail.com>"> <span class="fn">Alexandre Vicenzi</span></a>
</span></b>
<pre>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.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>