From cccfb14785a27053c1375f0d36c6f56660213d1a Mon Sep 17 00:00:00 2001 From: elsid Date: Sat, 19 Feb 2022 02:07:41 +0100 Subject: [PATCH] Remove user-defined constructor from ESM4::Quest To avoid explicit initialization. It should happen in the load functions anyway. --- components/esm4/loadqust.cpp | 11 ----------- components/esm4/loadqust.hpp | 1 - 2 files changed, 12 deletions(-) diff --git a/components/esm4/loadqust.cpp b/components/esm4/loadqust.cpp index 67e250ae76..5588f90580 100644 --- a/components/esm4/loadqust.cpp +++ b/components/esm4/loadqust.cpp @@ -33,17 +33,6 @@ #include "reader.hpp" //#include "writer.hpp" -ESM4::Quest::Quest() : mFormId(0), mFlags(0), mQuestScript(0) -{ - mEditorId.clear(); - mQuestName.clear(); - mFileName.clear(); - - std::memset(&mScript.scriptHeader, 0, sizeof(ScriptHeader)); - mScript.scriptSource.clear(); - mScript.globReference = 0; -} - ESM4::Quest::~Quest() { } diff --git a/components/esm4/loadqust.hpp b/components/esm4/loadqust.hpp index 905a5cf0fa..853805900c 100644 --- a/components/esm4/loadqust.hpp +++ b/components/esm4/loadqust.hpp @@ -71,7 +71,6 @@ namespace ESM4 ScriptDefinition mScript; - Quest(); virtual ~Quest(); virtual void load(ESM4::Reader& reader);