starmath/source/parse.cxx | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-)
New commits: commit 71c21660a79cffbb4415193f28f0f3de274bac11 Author: Stephan Bergmann <[email protected]> Date: Mon Mar 21 18:12:53 2016 +0100 Make aDelimiterTable a local var Change-Id: Ie551a52310d4723643433973bf7ecf024068e4d5 diff --git a/starmath/source/parse.cxx b/starmath/source/parse.cxx index 6544cc4..90dfb28 100644 --- a/starmath/source/parse.cxx +++ b/starmath/source/parse.cxx @@ -312,14 +312,6 @@ const SmTokenTableEntry * SmParser::GetTokenTableEntry( const OUString &rName ) namespace { -const sal_Unicode aDelimiterTable[] = -{ - ' ', '\t', '\n', '\r', '+', '-', '*', '/', '=', '#', - '%', '\\', '"', '~', '`', '>', '<', '&', '|', '(', - ')', '{', '}', '[', ']', '^', '_', - '\0' // end of list symbol -}; - bool IsDelimiter( const OUString &rTxt, sal_Int32 nPos ) // returns 'true' iff cChar is '\0' or a delimiter { @@ -331,6 +323,13 @@ bool IsDelimiter( const OUString &rTxt, sal_Int32 nPos ) sal_Unicode cChar = rTxt[nPos]; // check if 'cChar' is in the delimiter table + static const sal_Unicode aDelimiterTable[] = + { + ' ', '\t', '\n', '\r', '+', '-', '*', '/', '=', '#', + '%', '\\', '"', '~', '`', '>', '<', '&', '|', '(', + ')', '{', '}', '[', ']', '^', '_', + '\0' // end of list symbol + }; const sal_Unicode *pDelim = &aDelimiterTable[0]; for ( ; *pDelim != 0; pDelim++) if (*pDelim == cChar) _______________________________________________ Libreoffice-commits mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
