From 363b19ebe692b52275f46400aec402feeb4b31a2 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Thu, 18 Jun 2020 04:45:15 -0400 Subject: [PATCH] CScriptLayer: Make use of explicit --- src/Core/Resource/Script/CScriptLayer.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/Core/Resource/Script/CScriptLayer.h b/src/Core/Resource/Script/CScriptLayer.h index 55af6df3..ead17487 100644 --- a/src/Core/Resource/Script/CScriptLayer.h +++ b/src/Core/Resource/Script/CScriptLayer.h @@ -10,14 +10,13 @@ class CScriptLayer { CGameArea *mpArea; - TString mLayerName; + TString mLayerName{"New Layer"}; bool mActive = true; bool mVisible = true; std::vector mInstances; public: - CScriptLayer(CGameArea *pArea) + explicit CScriptLayer(CGameArea *pArea) : mpArea(pArea) - , mLayerName("New Layer") { }