diff options
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/core/unocore/unocrsrhelper.cxx | 2 | ||||
-rw-r--r-- | sw/source/core/unocore/unosett.cxx | 2 | ||||
-rw-r--r-- | sw/source/core/unocore/unostyle.cxx | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/sw/source/core/unocore/unocrsrhelper.cxx b/sw/source/core/unocore/unocrsrhelper.cxx index e4404bbd0328..0543f6560f5c 100644 --- a/sw/source/core/unocore/unocrsrhelper.cxx +++ b/sw/source/core/unocore/unocrsrhelper.cxx @@ -1184,7 +1184,7 @@ void makeRedline( SwPaM& rPaM, eType = nsRedlineType_t::REDLINE_FORMAT; else if ( rRedlineType == "TextTable" ) eType = nsRedlineType_t::REDLINE_TABLE; - else if( !rRedlineType.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM ( "Insert" ) )) + else if( !rRedlineType.startsWith( "Insert" )) throw lang::IllegalArgumentException(); //todo: what about REDLINE_FMTCOLL? diff --git a/sw/source/core/unocore/unosett.cxx b/sw/source/core/unocore/unosett.cxx index cea2d9e26b84..32e74d11a550 100644 --- a/sw/source/core/unocore/unosett.cxx +++ b/sw/source/core/unocore/unosett.cxx @@ -1108,7 +1108,7 @@ const char aInvalidStyle[] = "__XXX___invalid"; bool SwXNumberingRules::isInvalidStyle(const OUString &rName) { - return rName.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM(aInvalidStyle)); + return rName.startsWith(aInvalidStyle); } namespace diff --git a/sw/source/core/unocore/unostyle.cxx b/sw/source/core/unocore/unostyle.cxx index 8ba76e410507..5560dcc61fef 100644 --- a/sw/source/core/unocore/unostyle.cxx +++ b/sw/source/core/unocore/unostyle.cxx @@ -1692,7 +1692,7 @@ static void lcl_SetStyleProperty(const SfxItemPropertySimpleEntry& rEntry, sal_uInt16 nBin = USHRT_MAX; if ( !( rValue >>= sTmp ) ) throw lang::IllegalArgumentException(); - if ( sTmp.equalsAsciiL ( RTL_CONSTASCII_STRINGPARAM ( "[From printer settings]" ) ) ) + if ( sTmp.startsWith ( "[From printer settings]" ) ) nBin = USHRT_MAX-1; else if ( pPrinter ) { |