From 218bd0b33bb2f88a3c62f57819ea005618238620 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Fri, 10 Jul 2020 15:47:07 -0400 Subject: [PATCH] CTemplateMimeData: Make use of explicit on constructor --- src/Editor/WorldEditor/CTemplateMimeData.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Editor/WorldEditor/CTemplateMimeData.h b/src/Editor/WorldEditor/CTemplateMimeData.h index e6d94e3b..6ea57cb5 100644 --- a/src/Editor/WorldEditor/CTemplateMimeData.h +++ b/src/Editor/WorldEditor/CTemplateMimeData.h @@ -10,11 +10,11 @@ class CTemplateMimeData : public QMimeData CScriptTemplate *mpTemplate; public: - CTemplateMimeData(CScriptTemplate *pTemplate) + explicit CTemplateMimeData(CScriptTemplate *pTemplate) : mpTemplate(pTemplate) {} - inline CScriptTemplate* Template() const { return mpTemplate; } + CScriptTemplate* Template() const { return mpTemplate; } }; #endif // CTEMPLATEMIMEDATA_H