starmath: Spare unnecessary assignments
Change-Id: I8ddc1c04a76475d63a39dc21d36cda7a7aa26b9e Reviewed-on: https://gerrit.libreoffice.org/49921 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Takeshi Abe <tabe@fixedpoint.jp>
This commit is contained in:
@@ -266,12 +266,13 @@ public:
|
||||
{
|
||||
//Resize subnodes array
|
||||
maSubNodes.resize(nIndex + 1);
|
||||
//Set new slots to NULL
|
||||
for (size_t i = size; i < nIndex+1; i++)
|
||||
//Set new slots to NULL except at nIndex
|
||||
for (size_t i = size; i < nIndex; i++)
|
||||
maSubNodes[i] = nullptr;
|
||||
}
|
||||
maSubNodes[nIndex] = pNode;
|
||||
ClaimPaternity();
|
||||
if (pNode)
|
||||
pNode->SetParent(this);
|
||||
}
|
||||
|
||||
private:
|
||||
|
||||
Reference in New Issue
Block a user