CTemplateMimeData: Make use of explicit on constructor
This commit is contained in:
parent
b355dbe07e
commit
218bd0b33b
|
@ -10,11 +10,11 @@ class CTemplateMimeData : public QMimeData
|
||||||
CScriptTemplate *mpTemplate;
|
CScriptTemplate *mpTemplate;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
CTemplateMimeData(CScriptTemplate *pTemplate)
|
explicit CTemplateMimeData(CScriptTemplate *pTemplate)
|
||||||
: mpTemplate(pTemplate)
|
: mpTemplate(pTemplate)
|
||||||
{}
|
{}
|
||||||
|
|
||||||
inline CScriptTemplate* Template() const { return mpTemplate; }
|
CScriptTemplate* Template() const { return mpTemplate; }
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // CTEMPLATEMIMEDATA_H
|
#endif // CTEMPLATEMIMEDATA_H
|
||||||
|
|
Loading…
Reference in New Issue