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

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Mon Oct 21 19:06:28 CEST 2013


--- Comment #6 from Marcos Souza <marcos.souza.org at gmail.com> ---
Inside chart2, I saw some uses of:

sal_Bool SAL_CALL AccessibleBase::supportsService( const OUString& ServiceName
    throw (RuntimeException)
    return comphelper::ServiceInfoHelper::supportsService( ServiceName,
getSupportedServiceNames() );

And inside comphelper I found this declaration:

/** the base implementation iterates over the service names from
<code>getSupportedServiceNames</code> */
sal_Bool SAL_CALL ServiceInfoHelper::supportsService( const OUString&
ServiceName ) throw(::com::sun::star::uno::RuntimeException)
    return supportsService( ServiceName, getSupportedServiceNames() );

sal_Bool SAL_CALL ServiceInfoHelper::supportsService( const OUString&
ServiceName, const ::com::sun::star::uno::Sequence< OUString >&
SupportedServices ) throw() 
    const OUString * pArray = SupportedServices.getConstArray();
    for( sal_Int32 i = 0; i < SupportedServices.getLength(); i++ )
        if( pArray[i] == ServiceName )
            return sal_True;
    return sal_False;

Maybe we want to remove this 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/20131021/05d61858/attachment.html>

More information about the LibreOffice mailing list