diff options
-rw-r--r-- | starmath/source/parse.cxx | 27 |
1 files changed, 16 insertions, 11 deletions
diff --git a/starmath/source/parse.cxx b/starmath/source/parse.cxx index 5fd8417942a8..47ad4c6a3e70 100644 --- a/starmath/source/parse.cxx +++ b/starmath/source/parse.cxx @@ -34,24 +34,29 @@ using namespace ::com::sun::star; using namespace ::com::sun::star::i18n; -SmToken::SmToken() : - eType (TUNKNOWN), - cMathChar ('\0') +SmToken::SmToken() + : eType(TUNKNOWN) + , cMathChar('\0') + , nGroup(0) + , nLevel(0) + , nRow(0) + , nCol(0) { - nGroup = nCol = nRow = nLevel = 0; } SmToken::SmToken(SmTokenType eTokenType, sal_Unicode cMath, const sal_Char* pText, sal_uLong nTokenGroup, - sal_uInt16 nTokenLevel) { - eType = eTokenType; - cMathChar = cMath; - aText = OUString::createFromAscii(pText); - nGroup = nTokenGroup; - nLevel = nTokenLevel; - nCol = nRow = 0; + sal_uInt16 nTokenLevel) + : aText(OUString::createFromAscii(pText)) + , eType(eTokenType) + , cMathChar(cMath) + , nGroup(nTokenGroup) + , nLevel(nTokenLevel) + , nRow(0) + , nCol(0) +{ } |