mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-25 18:25:42 +08:00
Pass QString argument by const reference
This commit is contained in:
committed by
Klaus Basan
parent
9e00814a5a
commit
7e10ea2f64
@@ -15,7 +15,7 @@ namespace BlackMisc
|
|||||||
{
|
{
|
||||||
namespace Input
|
namespace Input
|
||||||
{
|
{
|
||||||
CJoystickButton::CJoystickButton(const QString deviceName, int index) :
|
CJoystickButton::CJoystickButton(const QString &deviceName, int index) :
|
||||||
m_deviceName(deviceName), m_buttonIndex(index)
|
m_deviceName(deviceName), m_buttonIndex(index)
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
|||||||
@@ -43,7 +43,7 @@ namespace BlackMisc
|
|||||||
CJoystickButton() = default;
|
CJoystickButton() = default;
|
||||||
|
|
||||||
//! Constructor
|
//! Constructor
|
||||||
CJoystickButton(const QString deviceName, int index);
|
CJoystickButton(const QString &deviceName, int index);
|
||||||
|
|
||||||
//! Get device name
|
//! Get device name
|
||||||
QString getDeviceName() const { return m_deviceName; }
|
QString getDeviceName() const { return m_deviceName; }
|
||||||
|
|||||||
Reference in New Issue
Block a user