From 643b70006fd5f6762561696421808f20d4e1e86f Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Fri, 3 Jun 2016 10:58:26 +0200 Subject: Teach loplugin:stringconstant about RTL_CONSTASCII_STRINGPARAM Change-Id: I8ff0e104aad045f3835dc8facc760a8339b1d088 --- framework/inc/protocols.h | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'framework/inc') diff --git a/framework/inc/protocols.h b/framework/inc/protocols.h index fafba56637ce..d729d6f72235 100644 --- a/framework/inc/protocols.h +++ b/framework/inc/protocols.h @@ -86,34 +86,34 @@ class ProtocolCheck switch(eRequired) { case E_PRIVATE: - bRet = sURL.matchAsciiL(RTL_CONSTASCII_STRINGPARAM(SPECIALPROTOCOL_PRIVATE)); + bRet = sURL.startsWith(SPECIALPROTOCOL_PRIVATE); break; case E_PRIVATE_OBJECT: - bRet = sURL.matchAsciiL(RTL_CONSTASCII_STRINGPARAM(SPECIALPROTOCOL_PRIVATE_OBJECT)); + bRet = sURL.startsWith(SPECIALPROTOCOL_PRIVATE_OBJECT); break; case E_PRIVATE_STREAM: - bRet = sURL.matchAsciiL(RTL_CONSTASCII_STRINGPARAM(SPECIALPROTOCOL_PRIVATE_STREAM)); + bRet = sURL.startsWith(SPECIALPROTOCOL_PRIVATE_STREAM); break; case E_PRIVATE_FACTORY: - bRet = sURL.matchAsciiL(RTL_CONSTASCII_STRINGPARAM(SPECIALPROTOCOL_PRIVATE_FACTORY)); + bRet = sURL.startsWith(SPECIALPROTOCOL_PRIVATE_FACTORY); break; case E_SLOT: - bRet = sURL.matchAsciiL(RTL_CONSTASCII_STRINGPARAM(SPECIALPROTOCOL_SLOT)); + bRet = sURL.startsWith(SPECIALPROTOCOL_SLOT); break; case E_UNO: - bRet = sURL.matchAsciiL(RTL_CONSTASCII_STRINGPARAM(SPECIALPROTOCOL_UNO)); + bRet = sURL.startsWith(SPECIALPROTOCOL_UNO); break; case E_MACRO: - bRet = sURL.matchAsciiL(RTL_CONSTASCII_STRINGPARAM(SPECIALPROTOCOL_MACRO)); + bRet = sURL.startsWith(SPECIALPROTOCOL_MACRO); break; case E_SERVICE: - bRet = sURL.matchAsciiL(RTL_CONSTASCII_STRINGPARAM(SPECIALPROTOCOL_SERVICE)); + bRet = sURL.startsWith(SPECIALPROTOCOL_SERVICE); break; case E_MAILTO: - bRet = sURL.matchAsciiL(RTL_CONSTASCII_STRINGPARAM(SPECIALPROTOCOL_MAILTO)); + bRet = sURL.startsWith(SPECIALPROTOCOL_MAILTO); break; case E_NEWS: - bRet = sURL.matchAsciiL(RTL_CONSTASCII_STRINGPARAM(SPECIALPROTOCOL_NEWS)); + bRet = sURL.startsWith(SPECIALPROTOCOL_NEWS); break; default: bRet = sal_False; -- cgit