summaryrefslogtreecommitdiff
path: root/sc/source/ui/unoobj/servuno.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2013-09-17 11:51:05 +0200
committerNoel Grandin <noel@peralex.com>2013-09-19 10:14:14 +0200
commitd1649c52fe915724d40bc8a9d1ce3ccb3916f3c7 (patch)
tree8d95b2acb51904bb34e401d8172a9619575f6781 /sc/source/ui/unoobj/servuno.cxx
parentd109f1660ec75e1253232dbf09d9cdc185b8386a (diff)
convert sc/inc/servuno.hxx from String to OUString
Change-Id: I199f60167d39b5e079fe429a3c787aad03a446ec
Diffstat (limited to 'sc/source/ui/unoobj/servuno.cxx')
-rw-r--r--sc/source/ui/unoobj/servuno.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/sc/source/ui/unoobj/servuno.cxx b/sc/source/ui/unoobj/servuno.cxx
index 2fa6324264c0..c8f8bea3455e 100644
--- a/sc/source/ui/unoobj/servuno.cxx
+++ b/sc/source/ui/unoobj/servuno.cxx
@@ -384,15 +384,15 @@ static const sal_Char* aOldNames[SC_SERVICE_COUNT] =
// alles static
-sal_uInt16 ScServiceProvider::GetProviderType(const String& rServiceName)
+sal_uInt16 ScServiceProvider::GetProviderType(const OUString& rServiceName)
{
- if (rServiceName.Len())
+ if (!rServiceName.isEmpty())
{
const sal_uInt16 nEntries =
sizeof(aProvNamesId) / sizeof(aProvNamesId[0]);
for (sal_uInt16 i = 0; i < nEntries; i++)
{
- if (rServiceName.EqualsAscii( aProvNamesId[i].pName ))
+ if (rServiceName.equalsAscii( aProvNamesId[i].pName ))
{
return aProvNamesId[i].nType;
}
@@ -402,7 +402,7 @@ sal_uInt16 ScServiceProvider::GetProviderType(const String& rServiceName)
for (i=0; i<SC_SERVICE_COUNT; i++)
{
OSL_ENSURE( aOldNames[i], "ScServiceProvider::GetProviderType: no oldname => crash");
- if (rServiceName.EqualsAscii( aOldNames[i] ))
+ if (rServiceName.equalsAscii( aOldNames[i] ))
{
OSL_FAIL("old service name used");
return i;