summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorTor Lillqvist <tml@collabora.com>2016-08-17 09:56:52 +0300
committerTor Lillqvist <tml@collabora.com>2016-08-17 10:22:38 +0300
commitd5ffeddff2a241c2cbbf1e3a03e41aee47307f87 (patch)
tree7a1e12e61cbf8b28c002b256e587a8a554e5bd25 /include
parentce59d3be31c144279a8ab857a2f1fc71bafab343 (diff)
loplugin:staticmethods
Change-Id: I84fe6603010defcfae32250c86e75cf2237f64a1
Diffstat (limited to 'include')
-rw-r--r--include/xmloff/fasttokenhandler.hxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/xmloff/fasttokenhandler.hxx b/include/xmloff/fasttokenhandler.hxx
index 9cda5e3f8b6f..991318eded7a 100644
--- a/include/xmloff/fasttokenhandler.hxx
+++ b/include/xmloff/fasttokenhandler.hxx
@@ -27,7 +27,7 @@ public:
~TokenMap();
/** Returns the token identifier for the passed Unicode token name. */
- sal_Int32 getTokenFromUnicode( const OUString& rUnicodeName ) const;
+ static sal_Int32 getTokenFromUnicode( const OUString& rUnicodeName );
/** Returns the UTF8 name of the passed token identifier as byte sequence. */
css::uno::Sequence< sal_Int8 > getUtf8TokenName( sal_Int32 nToken ) const
@@ -39,20 +39,20 @@ public:
}
/** Returns the token identifier for the passed UTF8 token name. */
- sal_Int32 getTokenFromUtf8( const css::uno::Sequence< sal_Int8 >& rUtf8Name ) const
+ static sal_Int32 getTokenFromUtf8( const css::uno::Sequence< sal_Int8 >& rUtf8Name )
{
return getTokenFromUTF8( reinterpret_cast< const char* >(
rUtf8Name.getConstArray() ), rUtf8Name.getLength() );
}
/** Returns the token identifier for a UTF8 string passed in pToken */
- sal_Int32 getTokenFromUTF8( const char *pToken, sal_Int32 nLength ) const
+ static sal_Int32 getTokenFromUTF8( const char *pToken, sal_Int32 nLength )
{
return getTokenPerfectHash( pToken, nLength );
}
private:
- sal_Int32 getTokenPerfectHash( const char *pToken, sal_Int32 nLength ) const;
+ static sal_Int32 getTokenPerfectHash( const char *pToken, sal_Int32 nLength );
std::vector< css::uno::Sequence< sal_Int8 > > maTokenNames;
};