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

@@ -269,7 +269,7 @@ struct Face : public aiFace
{}
//! Construction from given type
Face(uint32_t _type)
explicit Face(uint32_t _type)
: surfaceIndex (0)
, smoothGroup (0)
, type (_type)
@@ -305,7 +305,7 @@ struct Face : public aiFace
*/
struct VMapEntry
{
VMapEntry(unsigned int _dims)
explicit VMapEntry(unsigned int _dims)
: dims(_dims)
{}