summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2013-10-09 19:09:34 +0200
committerStephan Bergmann <sbergman@redhat.com>2013-10-09 21:02:11 +0200
commit9c489f7fe0fd81fd2d293c1cb7c7d4874f434568 (patch)
tree13a5771ea1e384f66baae5b568110eff92b59cf0 /sw
parent528391f3c98e3ea809134ba2b9c60bb62e929c47 (diff)
Use rtl::OUString::startsWithIgnoreAsciiCase
Change-Id: I889a072bd96b6076966e3aad84e39d3491618912
Diffstat (limited to 'sw')
-rw-r--r--sw/source/core/unocore/unofield.cxx4
1 files changed, 1 insertions, 3 deletions
diff --git a/sw/source/core/unocore/unofield.cxx b/sw/source/core/unocore/unofield.cxx
index fff259f6a2ce..20d04cfca346 100644
--- a/sw/source/core/unocore/unofield.cxx
+++ b/sw/source/core/unocore/unofield.cxx
@@ -94,8 +94,6 @@
using namespace ::com::sun::star;
using namespace nsSwDocInfoSubType;
-#define COM_TEXT_FLDMASTER "com.sun.star.text.FieldMaster."
-
// case-corrected version of the first part for the service names (see #i67811)
#define COM_TEXT_FLDMASTER_CC "com.sun.star.text.fieldmaster."
@@ -2596,7 +2594,7 @@ SwXTextFieldMasters::~SwXTextFieldMasters()
-----------------------------------------------------------------------*/
static sal_uInt16 lcl_GetIdByName( OUString& rName, OUString& rTypeName )
{
- if (rName.startsWith(COM_TEXT_FLDMASTER) || rName.startsWith(COM_TEXT_FLDMASTER_CC))
+ if (rName.startsWithIgnoreAsciiCase(COM_TEXT_FLDMASTER_CC))
rName = rName.copy(30);
sal_uInt16 nResId = USHRT_MAX;