diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2016-03-21 18:10:04 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2016-03-21 18:10:04 +0100 |
commit | ffe2e46470b3132348ad4cb24456ca9a684f30ec (patch) | |
tree | 408b87f8bfbfa2956bbdef31665d8dee80e78321 | |
parent | 1424d020e162b82a4147e17baad8ef18ea34d3e0 (diff) |
loplugin:staticmethods
Change-Id: Id40b00234f78afc238d6b3af1283e0429587ee49
-rw-r--r-- | starmath/inc/parse.hxx | 1 | ||||
-rw-r--r-- | starmath/source/parse.cxx | 7 |
2 files changed, 4 insertions, 4 deletions
diff --git a/starmath/inc/parse.hxx b/starmath/inc/parse.hxx index 3ae3f66be8b7..130fbd71a938 100644 --- a/starmath/inc/parse.hxx +++ b/starmath/inc/parse.hxx @@ -53,7 +53,6 @@ class SmParser SmParser(const SmParser&) = delete; SmParser& operator=(const SmParser&) = delete; - bool IsDelimiter( const OUString &rTxt, sal_Int32 nPos ); void NextToken(); sal_Int32 GetTokenIndex() const { return m_nTokenIndex; } void Replace( sal_Int32 nPos, sal_Int32 nLen, const OUString &rText ); diff --git a/starmath/source/parse.cxx b/starmath/source/parse.cxx index 1540599b7520..6544cc494b65 100644 --- a/starmath/source/parse.cxx +++ b/starmath/source/parse.cxx @@ -310,9 +310,9 @@ const SmTokenTableEntry * SmParser::GetTokenTableEntry( const OUString &rName ) return pRes; } +namespace { - -static const sal_Unicode aDelimiterTable[] = +const sal_Unicode aDelimiterTable[] = { ' ', '\t', '\n', '\r', '+', '-', '*', '/', '=', '#', '%', '\\', '"', '~', '`', '>', '<', '&', '|', '(', @@ -320,7 +320,7 @@ static const sal_Unicode aDelimiterTable[] = '\0' // end of list symbol }; -bool SmParser::IsDelimiter( const OUString &rTxt, sal_Int32 nPos ) +bool IsDelimiter( const OUString &rTxt, sal_Int32 nPos ) // returns 'true' iff cChar is '\0' or a delimiter { assert(nPos <= rTxt.getLength()); //index out of range @@ -345,6 +345,7 @@ bool SmParser::IsDelimiter( const OUString &rTxt, sal_Int32 nPos ) return bIsDelim; } +} void SmParser::Replace( sal_Int32 nPos, sal_Int32 nLen, const OUString &rText ) { |