From 46e0b4090837ce36ba7b5e5b606a44cce6b52e52 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Fri, 10 Jul 2020 15:40:39 -0400 Subject: [PATCH] CResizeScriptArrayCommand: Make use of in-class initializers --- src/Editor/Undo/CResizeScriptArrayCommand.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/Editor/Undo/CResizeScriptArrayCommand.h b/src/Editor/Undo/CResizeScriptArrayCommand.h index cc9e21f1..13f1b382 100644 --- a/src/Editor/Undo/CResizeScriptArrayCommand.h +++ b/src/Editor/Undo/CResizeScriptArrayCommand.h @@ -6,8 +6,8 @@ class CResizeScriptArrayCommand : public CEditScriptPropertyCommand { /** Old/new model row counts; we store this here to support editing arrays on multiple instances at once */ - int mOldRowCount; - int mNewRowCount; + int mOldRowCount = -1; + int mNewRowCount = -1; public: CResizeScriptArrayCommand(IProperty* pProperty, @@ -17,8 +17,6 @@ public: const QString& rkCommandName = "Resize Array" ) : CEditScriptPropertyCommand(pProperty, rkInstances, pModel, Index, rkCommandName) - , mOldRowCount(-1) - , mNewRowCount(-1) { }