diff options
author | Tor Lillqvist <tml@collabora.com> | 2016-08-17 09:56:52 +0300 |
---|---|---|
committer | Tor Lillqvist <tml@collabora.com> | 2016-08-17 10:22:38 +0300 |
commit | d5ffeddff2a241c2cbbf1e3a03e41aee47307f87 (patch) | |
tree | 7a1e12e61cbf8b28c002b256e587a8a554e5bd25 /xmloff/source/core | |
parent | ce59d3be31c144279a8ab857a2f1fc71bafab343 (diff) |
loplugin:staticmethods
Change-Id: I84fe6603010defcfae32250c86e75cf2237f64a1
Diffstat (limited to 'xmloff/source/core')
-rw-r--r-- | xmloff/source/core/fasttokenhandler.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/xmloff/source/core/fasttokenhandler.cxx b/xmloff/source/core/fasttokenhandler.cxx index 722584cd4a5e..9e2b45fcbe10 100644 --- a/xmloff/source/core/fasttokenhandler.cxx +++ b/xmloff/source/core/fasttokenhandler.cxx @@ -55,14 +55,14 @@ TokenMap::~TokenMap() { } -sal_Int32 TokenMap::getTokenFromUnicode( const OUString& rUnicodeName ) const +sal_Int32 TokenMap::getTokenFromUnicode( const OUString& rUnicodeName ) { OString aUtf8Name = OUStringToOString( rUnicodeName, RTL_TEXTENCODING_UTF8 ); const struct xmltoken* pToken = Perfect_Hash::in_word_set( aUtf8Name.getStr(), aUtf8Name.getLength() ); return pToken ? pToken->nToken : XML_TOKEN_INVALID; } -sal_Int32 TokenMap::getTokenPerfectHash( const char *pStr, sal_Int32 nLength ) const +sal_Int32 TokenMap::getTokenPerfectHash( const char *pStr, sal_Int32 nLength ) { const struct xmltoken *pToken = Perfect_Hash::in_word_set( pStr, nLength ); return pToken ? pToken->nToken : XML_TOKEN_INVALID; @@ -87,13 +87,13 @@ uno::Sequence< sal_Int8 > FastTokenHandler::getUTF8Identifier( sal_Int32 nToken sal_Int32 FastTokenHandler::getTokenFromUTF8( const uno::Sequence< sal_Int8 >& rIdentifier ) throw (uno::RuntimeException, std::exception) { - return mrTokenMap.getTokenFromUtf8( rIdentifier ); + return TokenMap::getTokenFromUtf8( rIdentifier ); } // Much faster direct C++ shortcut sal_Int32 FastTokenHandler::getTokenDirect( const char* pToken, sal_Int32 nLength ) const { - return mrTokenMap.getTokenFromUTF8( pToken, nLength ); + return TokenMap::getTokenFromUTF8( pToken, nLength ); } } // namespace token |