<html>
<head>
<base href="https://bugs.freedesktop.org/" />
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW --- - Adapt supportsService implementations to cppu::supportsService"
href="https://bugs.freedesktop.org/show_bug.cgi?id=54938#c6">Comment # 6</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW --- - 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:marcos.souza.org@gmail.com" title="Marcos Souza <marcos.souza.org@gmail.com>"> <span class="fn">Marcos Souza</span></a>
</span></b>
<pre>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?</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>