aboutsummaryrefslogtreecommitdiff
path: root/src/server/game/AI/SmartScripts
diff options
context:
space:
mode:
authorShauren <shauren.trinity@gmail.com>2025-06-13 19:31:03 +0200
committerShauren <shauren.trinity@gmail.com>2025-06-13 19:31:03 +0200
commitf94d87b00fe384df055d197fe957db083e4fd3c6 (patch)
tree39b2615671a7feb14634ea9ec5b06c80a95dc484 /src/server/game/AI/SmartScripts
parent36332d2463cdb98171878ab8c836a875fe3493cc (diff)
Core/Scripts: Mark script base class constructors noexcept
Diffstat (limited to 'src/server/game/AI/SmartScripts')
-rw-r--r--src/server/game/AI/SmartScripts/SmartScript.cpp8
-rw-r--r--src/server/game/AI/SmartScripts/SmartScript.h4
2 files changed, 9 insertions, 3 deletions
diff --git a/src/server/game/AI/SmartScripts/SmartScript.cpp b/src/server/game/AI/SmartScripts/SmartScript.cpp
index f4aed3e60fd..3a6054fe3d5 100644
--- a/src/server/game/AI/SmartScripts/SmartScript.cpp
+++ b/src/server/game/AI/SmartScripts/SmartScript.cpp
@@ -71,9 +71,11 @@ SmartScript::SmartScript()
mAllEventFlags = 0;
}
-SmartScript::~SmartScript()
-{
-}
+SmartScript::SmartScript(SmartScript const& other) = default;
+SmartScript::SmartScript(SmartScript&& other) noexcept = default;
+SmartScript& SmartScript::operator=(SmartScript const& other) = default;
+SmartScript& SmartScript::operator=(SmartScript&& other) noexcept = default;
+SmartScript::~SmartScript() = default;
bool SmartScript::IsSmart(Creature* c, bool silent) const
{
diff --git a/src/server/game/AI/SmartScripts/SmartScript.h b/src/server/game/AI/SmartScripts/SmartScript.h
index d83f4e01439..8d9d00c62bc 100644
--- a/src/server/game/AI/SmartScripts/SmartScript.h
+++ b/src/server/game/AI/SmartScripts/SmartScript.h
@@ -42,6 +42,10 @@ class TC_GAME_API SmartScript
{
public:
SmartScript();
+ SmartScript(SmartScript const& other);
+ SmartScript(SmartScript&& other) noexcept;
+ SmartScript& operator=(SmartScript const& other);
+ SmartScript& operator=(SmartScript&& other) noexcept;
~SmartScript();
void OnInitialize(WorldObject* obj, AreaTriggerEntry const* at = nullptr, SceneTemplate const* scene = nullptr, Quest const* qst = nullptr, uint32 evnt = 0);