Kaydet (Commit) 6e7f5c5f authored tarafından Takeshi Abe's avatar Takeshi Abe Kaydeden (comit) Noel Grandin

starmath: Use member initialization lists for SmToken

Change-Id: I3c5389135054ee866ebac3122edc71ec8c163124
Reviewed-on: https://gerrit.libreoffice.org/18785Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarNoel Grandin <noelgrandin@gmail.com>
üst fd8183f7
......@@ -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)
{
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment