<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#c12">Comment # 12</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>I saw a lot of places like this:
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?
OBS: I believe all places that test the supportsService like this have this
same function:
uno::Sequence<OUString> SAL_CALL ScTabViewObj::getSupportedServiceNames()
throw(uno::RuntimeException)
{
uno::Sequence<OUString> aRet(2);
OUString* pArray = aRet.getArray();
pArray[0] = OUString( SCTABVIEWOBJ_SERVICE );
pArray[1] = OUString( SCVIEWSETTINGS_SERVICE );
return aRet;
}
with the same service name added into uno::Sequence.
With this change we can have a more standard code, at least talking about the
way we get uno service names :)</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>