refs #472 Removed static_cast<int> for enums in blackmisc, no longer needed.

This commit is contained in:
Mathew Sutcliffe
2015-09-27 01:41:42 +01:00
parent 9b1e42d71a
commit d13e863218
23 changed files with 104 additions and 35 deletions

View File

@@ -75,7 +75,7 @@ namespace BlackMisc
switch (i)
{
case IndexKey:
return CVariant::from(static_cast<int>(this->m_keyCode));
return CVariant::from(this->m_keyCode);
case IndexKeyAsString:
return CVariant::from(getKeyAsString());
default:

View File

@@ -12,6 +12,8 @@
#ifndef BLACKMISC_INPUT_KEYCODES_H
#define BLACKMISC_INPUT_KEYCODES_H
#include <QMetaType>
namespace BlackMisc
{
namespace Input
@@ -70,4 +72,6 @@ namespace BlackMisc
} //namespace
} // namespace
Q_DECLARE_METATYPE(BlackMisc::Input::KeyCode)
#endif //guard