Commit dc8bd636 authored by Ben Hymers's avatar Ben Hymers
Browse files

Add explicit keyword to constructors taking one argumen

parent 685d7719
......@@ -32,7 +32,7 @@ namespace OIS
class _OISExport EventArg
{
public:
EventArg( Object* obj ) : device(obj) {}
explicit EventArg( Object* obj ) : device(obj) {}
virtual ~EventArg() {}
//! Pointer to the Input Device
......
......@@ -177,7 +177,7 @@ namespace OIS
@remarks
Derived classes must provide input system name
*/
InputManager(const std::string& name);
explicit InputManager(const std::string& name);
/**
@remarks
......
......@@ -167,7 +167,7 @@ namespace OIS
{
public:
Component() : cType(OIS_Unknown) {};
Component(ComponentType type) : cType(type) {};
explicit Component(ComponentType type) : cType(type) {};
//! Indicates what type of coponent this is
ComponentType cType;
};
......@@ -177,7 +177,7 @@ namespace OIS
{
public:
Button() : Component(OIS_Button), pushed(false) {}
Button(bool bPushed) : Component(OIS_Button), pushed(bPushed) {}
explicit Button(bool bPushed) : Component(OIS_Button), pushed(bPushed) {}
//! true if pushed, false otherwise
bool pushed;
};
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment