starmath/source/parse.cxx | 27 ++++++++++++++++----------- 1 file changed, 16 insertions(+), 11 deletions(-)
New commits: commit 6e7f5c5fce198bf2f3a228e1faea7f7e9ed09f77 Author: Takeshi Abe <t...@fixedpoint.jp> Date: Tue Sep 22 19:34:20 2015 +0900 starmath: Use member initialization lists for SmToken Change-Id: I3c5389135054ee866ebac3122edc71ec8c163124 Reviewed-on: https://gerrit.libreoffice.org/18785 Tested-by: Jenkins <c...@libreoffice.org> Reviewed-by: Noel Grandin <noelgran...@gmail.com> diff --git a/starmath/source/parse.cxx b/starmath/source/parse.cxx index 5fd8417..47ad4c6 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) +{ } _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits