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 ...@@ -32,7 +32,7 @@ namespace OIS
class _OISExport EventArg class _OISExport EventArg
{ {
public: public:
EventArg( Object* obj ) : device(obj) {} explicit EventArg( Object* obj ) : device(obj) {}
virtual ~EventArg() {} virtual ~EventArg() {}
//! Pointer to the Input Device //! Pointer to the Input Device
......
...@@ -177,7 +177,7 @@ namespace OIS ...@@ -177,7 +177,7 @@ namespace OIS
@remarks @remarks
Derived classes must provide input system name Derived classes must provide input system name
*/ */
InputManager(const std::string& name); explicit InputManager(const std::string& name);
/** /**
@remarks @remarks
......
...@@ -167,7 +167,7 @@ namespace OIS ...@@ -167,7 +167,7 @@ namespace OIS
{ {
public: public:
Component() : cType(OIS_Unknown) {}; Component() : cType(OIS_Unknown) {};
Component(ComponentType type) : cType(type) {}; explicit Component(ComponentType type) : cType(type) {};
//! Indicates what type of coponent this is //! Indicates what type of coponent this is
ComponentType cType; ComponentType cType;
}; };
...@@ -177,7 +177,7 @@ namespace OIS ...@@ -177,7 +177,7 @@ namespace OIS
{ {
public: public:
Button() : Component(OIS_Button), pushed(false) {} 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 //! true if pushed, false otherwise
bool pushed; 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