diff options
author | Takeshi Abe <tabe@fixedpoint.jp> | 2015-09-22 19:34:20 +0900 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2015-09-23 13:13:15 +0000 |
commit | 6e7f5c5fce198bf2f3a228e1faea7f7e9ed09f77 (patch) | |
tree | f3cb6e893bfa4951c449618ed8bd908720a7d3ca /starmath | |
parent | fd8183f7d2458fe474fe36462d2d4c23bc1d37e7 (diff) |
starmath: Use member initialization lists for SmToken
Change-Id: I3c5389135054ee866ebac3122edc71ec8c163124
Reviewed-on: https://gerrit.libreoffice.org/18785
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'starmath')
-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) +{ } |