Mark single-parameter constructors explicit

Suggested by cppcheck
This commit is contained in:
Turo Lamminen
2015-10-29 14:04:23 +02:00
parent 06b27e69c7
commit 46121a1559
32 changed files with 43 additions and 43 deletions

View File

@@ -129,7 +129,7 @@ struct Mesh
std::vector<Bone> mBones;
Mesh(const std::string &pName = "") { mName = pName; mNumTextures = 0; mNumColorSets = 0; }
explicit Mesh(const std::string &pName = "") { mName = pName; mNumTextures = 0; mNumColorSets = 0; }
};
/** Helper structure to represent a XFile frame */
@@ -142,7 +142,7 @@ struct Node
std::vector<Mesh*> mMeshes;
Node() { mParent = NULL; }
Node( Node* pParent) { mParent = pParent; }
explicit Node( Node* pParent) { mParent = pParent; }
~Node()
{
for( unsigned int a = 0; a < mChildren.size(); a++)