Date: prev next · Thread: first prev next last
2014 Archives by date, by thread · List index


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

--- Comment #59 from Alexandre Vicenzi <vicenzi.alexandre@gmail.com> ---
(In reply to comment #58)
(In reply to comment #56)
I tried to convert dbaccess/source/inc/apitools.hxx, but I get this:

In member function ‘virtual sal_Bool dbaccess::OQuery::supportsService(const
rtl::OUString&)’:
./dbaccess/source/inc/apitools.hxx:81:57: error:
‘com::sun::star::lang::XServiceInfo’ is an ambiguous base of
‘dbaccess::OQuery’
         return cppu::supportsService(this, _rServiceName);

Do you have any idea? In this case supportsService is a macro.

Multiple inheritance of the same UNO interface does happen, and you then
need to help the compiler by static_casting this to one of the branches
through which it is inherited.  (Though multiple inheritance of XServiceInfo
rather smells like a design bug that should be cleaned up.)

Unwind the use of IMPLEMENT_SERVICE_INFO3 in
dbaccess/source/core/api/query.cxx, find out through which branches
XServiceInfo is inherited, and use a static_cast around the this pointer in
the implementation of OQuery::supportsService.

OK, I will take a look. Thanks.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.