Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
fengzch-das
OIS
Commits
dc8bd636
Commit
dc8bd636
authored
Oct 06, 2013
by
Ben Hymers
Browse files
Add explicit keyword to constructors taking one argumen
parent
685d7719
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
includes/OISEvents.h
includes/OISEvents.h
+1
-1
includes/OISInputManager.h
includes/OISInputManager.h
+1
-1
includes/OISPrereqs.h
includes/OISPrereqs.h
+2
-2
No files found.
includes/OISEvents.h
View file @
dc8bd636
...
...
@@ -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
...
...
includes/OISInputManager.h
View file @
dc8bd636
...
...
@@ -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
...
...
includes/OISPrereqs.h
View file @
dc8bd636
...
...
@@ -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
;
};
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment