<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#c16">Comment # 16</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>(In reply to <a href="show_bug.cgi?id=54938#c14">comment #14</a>)
<span class="quote">> (In reply to <a href="show_bug.cgi?id=54938#c12">comment #12</a>)
> > 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.</span >
Nice! I'll use cppu::supportsService for all places that implements
css.lang.XServiceInfo and remove that string comparisons.</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>