summaryrefslogtreecommitdiff
path: root/starmath
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2016-03-21 18:10:04 +0100
committerStephan Bergmann <sbergman@redhat.com>2016-03-21 18:10:04 +0100
commitffe2e46470b3132348ad4cb24456ca9a684f30ec (patch)
tree408b87f8bfbfa2956bbdef31665d8dee80e78321 /starmath
parent1424d020e162b82a4147e17baad8ef18ea34d3e0 (diff)
loplugin:staticmethods
Change-Id: Id40b00234f78afc238d6b3af1283e0429587ee49
Diffstat (limited to 'starmath')
-rw-r--r--starmath/inc/parse.hxx1
-rw-r--r--starmath/source/parse.cxx7
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 )
{