CResizeScriptArrayCommand: Make use of in-class initializers

This commit is contained in:
Lioncash 2020-07-10 15:40:39 -04:00
parent 978627d14e
commit 46e0b40908
1 changed files with 2 additions and 4 deletions

View File

@ -6,8 +6,8 @@
class CResizeScriptArrayCommand : public CEditScriptPropertyCommand class CResizeScriptArrayCommand : public CEditScriptPropertyCommand
{ {
/** Old/new model row counts; we store this here to support editing arrays on multiple instances at once */ /** Old/new model row counts; we store this here to support editing arrays on multiple instances at once */
int mOldRowCount; int mOldRowCount = -1;
int mNewRowCount; int mNewRowCount = -1;
public: public:
CResizeScriptArrayCommand(IProperty* pProperty, CResizeScriptArrayCommand(IProperty* pProperty,
@ -17,8 +17,6 @@ public:
const QString& rkCommandName = "Resize Array" const QString& rkCommandName = "Resize Array"
) )
: CEditScriptPropertyCommand(pProperty, rkInstances, pModel, Index, rkCommandName) : CEditScriptPropertyCommand(pProperty, rkInstances, pModel, Index, rkCommandName)
, mOldRowCount(-1)
, mNewRowCount(-1)
{ {
} }