Kaydet (Commit) 9c489f7f authored tarafından Stephan Bergmann's avatar Stephan Bergmann

Use rtl::OUString::startsWithIgnoreAsciiCase

Change-Id: I889a072bd96b6076966e3aad84e39d3491618912
üst 528391f3
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment