mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-05 09:15:34 +08:00
refs #937 Resolved clazy warnings: pass-by-value/reference.
This commit is contained in:
@@ -52,7 +52,7 @@ namespace BlackMisc
|
||||
QString getKeyAsString() const;
|
||||
|
||||
//! Set key code
|
||||
void setKey(const KeyCode key) { this->m_keyCode = key; }
|
||||
void setKey(KeyCode key) { this->m_keyCode = key; }
|
||||
|
||||
//! Set key code
|
||||
void setKey(int key) { this->m_keyCode = static_cast<KeyCode>(key); }
|
||||
@@ -76,7 +76,7 @@ namespace BlackMisc
|
||||
}
|
||||
|
||||
//! Set key object
|
||||
void setKeyObject(const CKeyboardKey &key);
|
||||
void setKeyObject(CKeyboardKey key);
|
||||
|
||||
//! \copydoc BlackMisc::Mixin::Index::setPropertyByIndex
|
||||
void setPropertyByIndex(const BlackMisc::CPropertyIndex &index, const CVariant &variant);
|
||||
|
||||
Reference in New Issue
Block a user