[Libreoffice] -Woverloaded-virtual

Thorsten Behrens thb at documentfoundation.org
Fri Mar 25 07:31:55 PDT 2011

Lubos Lunak wrote:
>  BTW the warnings in canvas are pretty ugly - it's a template class that 
> inherits from some of its template arguments and sometimes one of those is a 
> UNO interface that implements disposing(const 
> com::sun::star::lang::EventObject&), whereas the class itself implements 
> disposing(). Solving it by "using Base::disposing" doesn't work, since the 
> template doesn't always inherit from that UNO class.
Hm, don't see an immediate fix, too - problem is,
WeakComponentImplHelperBase's disposing *needs* to be overridden, as
per the implementation of that cppu helper, that's the way to catch
the message and forward it to the aggregated class.

In this case, though, the warning is not critical (although of
course the naming sucks).


-- Thorsten
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/libreoffice/attachments/20110325/cfc3aded/attachment.pgp>

More information about the LibreOffice mailing list