mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-03 15:45:46 +08:00
refs #472 Removed static_cast<int> for enums in blackmisc, no longer needed.
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user