From edaafd4bcfd83239c4fd7f02d1af7036c1a54607 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Thu, 11 Jun 2020 13:30:05 -0400 Subject: [PATCH] CAudioMacro: Make constructor explicit Prevents implicit error-prone constructions from occurring. --- src/Core/Resource/CAudioMacro.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Core/Resource/CAudioMacro.h b/src/Core/Resource/CAudioMacro.h index b09f0fcc..e1bd043e 100644 --- a/src/Core/Resource/CAudioMacro.h +++ b/src/Core/Resource/CAudioMacro.h @@ -12,7 +12,7 @@ class CAudioMacro : public CResource std::vector mSamples; public: - CAudioMacro(CResourceEntry *pEntry = 0) + explicit CAudioMacro(CResourceEntry *pEntry = nullptr) : CResource(pEntry) {}