diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2016-06-03 10:58:26 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2016-06-03 10:58:26 +0200 |
commit | 643b70006fd5f6762561696421808f20d4e1e86f (patch) | |
tree | e770962bd4830b9b41abf5446f5674f67c164048 /framework/inc | |
parent | 9cf0ac710a6ace0a833fa193c7e18c4a7405bc42 (diff) |
Teach loplugin:stringconstant about RTL_CONSTASCII_STRINGPARAM
Change-Id: I8ff0e104aad045f3835dc8facc760a8339b1d088
Diffstat (limited to 'framework/inc')
-rw-r--r-- | framework/inc/protocols.h | 20 |
1 files changed, 10 insertions, 10 deletions
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; |