mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-02 23:25:53 +08:00
Ref T545 Removed redundant constructors that are now inherited.
This commit is contained in:
@@ -38,9 +38,6 @@ namespace BlackMisc
|
||||
//! Default constructor
|
||||
CActionHotkeyList() = default;
|
||||
|
||||
//! Construct from std::initializer_list<bool>
|
||||
CActionHotkeyList(std::initializer_list<CActionHotkey> il) : CSequence<CActionHotkey>(il) {}
|
||||
|
||||
//! Construct from a base class object.
|
||||
CActionHotkeyList(const CSequence<CActionHotkey> &baseClass);
|
||||
|
||||
|
||||
@@ -19,7 +19,7 @@ namespace BlackMisc
|
||||
{
|
||||
namespace Input
|
||||
{
|
||||
CHotkeyCombination::CHotkeyCombination(CKeyboardKey key) : CHotkeyCombination(CKeyboardKeyList(key))
|
||||
CHotkeyCombination::CHotkeyCombination(CKeyboardKey key) : CHotkeyCombination(CKeyboardKeyList { key })
|
||||
{ }
|
||||
|
||||
CHotkeyCombination::CHotkeyCombination(const CKeyboardKeyList &keys) : m_keyboardKeys(keys)
|
||||
|
||||
@@ -39,9 +39,6 @@ namespace BlackMisc
|
||||
|
||||
//! Construct from a base class object.
|
||||
CJoystickButtonList(const CSequence<CJoystickButton> &baseClass);
|
||||
|
||||
//! Initializer list constructor.
|
||||
CJoystickButtonList(std::initializer_list<CJoystickButton> il) : CSequence<CJoystickButton>(il) {}
|
||||
};
|
||||
|
||||
} //namespace
|
||||
|
||||
@@ -15,11 +15,6 @@ namespace BlackMisc
|
||||
{
|
||||
CKeyboardKeyList::CKeyboardKeyList() { }
|
||||
|
||||
CKeyboardKeyList::CKeyboardKeyList(CKeyboardKey key)
|
||||
{
|
||||
this->push_back(key);
|
||||
}
|
||||
|
||||
CKeyboardKeyList::CKeyboardKeyList(const CSequence<CKeyboardKey> &baseClass) :
|
||||
CSequence<CKeyboardKey>(baseClass)
|
||||
{ }
|
||||
|
||||
@@ -38,15 +38,9 @@ namespace BlackMisc
|
||||
//! Default constructor
|
||||
CKeyboardKeyList();
|
||||
|
||||
//! Init by single key
|
||||
CKeyboardKeyList(CKeyboardKey key);
|
||||
|
||||
//! Construct from a base class object.
|
||||
CKeyboardKeyList(const CSequence<CKeyboardKey> &baseClass);
|
||||
|
||||
//! Initializer list constructor.
|
||||
CKeyboardKeyList(std::initializer_list<CKeyboardKey> il) : CSequence<CKeyboardKey>(il) {}
|
||||
|
||||
//! All key strings
|
||||
QStringList getKeyStrings() const;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user