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


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

--- Comment #16 from Marcos Souza <marcos.souza.org@gmail.com> ---
(In reply to comment #14)
(In reply to comment #12)
sal_Bool SAL_CALL ScTabViewObj::supportsService( const OUString&
rServiceName )
                                                   
throw(uno::RuntimeException)
{
    return rServiceName.equalsAscii( SCTABVIEWOBJ_SERVICE ) || 
           rServiceName.equalsAscii( SCVIEWSETTINGS_SERVICE );
}

So, can we just exchange this to cppu::supportsService? Or we need to some
another pieces of code?

Every UNO object O implementing css.lang.XServiceInfo must meet the
condition that O.supportsService(S) returns true iff S is in the sequence
returned by O.getSupportedServiceNames().  Therefore, any case where the
implementation of supportsService could not be replaced by a call to
cppu::supportsService would be a bug that needs fixing anyway.

Nice! I'll use cppu::supportsService for all places that implements
css.lang.XServiceInfo and remove that string comparisons.

-- 
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.