Cleanup: less curly braces in destructor

This commit is contained in:
John McCardle 2023-08-30 14:50:27 -04:00
parent 884a49a63a
commit 795701c986
1 changed files with 4 additions and 4 deletions

View File

@ -27,10 +27,10 @@ x(_x), y(_y), w(_w), h(_h), outline(0)
UIFrame::~UIFrame() UIFrame::~UIFrame()
{ {
if (pyOutlineColor) { Py_DECREF(pyOutlineColor); } if (pyOutlineColor) Py_DECREF(pyOutlineColor);
else { if (_outlineColor) { delete _outlineColor; } } else if (_outlineColor) delete _outlineColor;
if (pyFillColor) { Py_DECREF(pyFillColor); } if (pyFillColor) Py_DECREF(pyFillColor);
else { if (_fillColor) { delete _fillColor; } } else if (_fillColor) delete _fillColor;
} }
/* /*