Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit 838777ea authored by Christoph Feck's avatar Christoph Feck

Fix warning 'returning reference to temporary'

Differential Revision: https://phabricator.kde.org/D6332
parent 33793e9e
......@@ -40,7 +40,7 @@ public:
bool getConfig() Q_DECL_OVERRIDE;
bool getDefaultConfig() Q_DECL_OVERRIDE;
bool isChangedConfig() const Q_DECL_OVERRIDE;
const QString &errorString() const Q_DECL_OVERRIDE { return m_errorString; }
QString errorString() const Q_DECL_OVERRIDE { return m_errorString; }
virtual int touchpadCount() const Q_DECL_OVERRIDE { return m_devices.count(); }
virtual QVector<QObject*> getDevices() const Q_DECL_OVERRIDE { return m_devices; }
......
......@@ -52,7 +52,7 @@ public:
QStringList supportedParameters() const Q_DECL_OVERRIDE {
return m_device ? m_device->supportedParameters() : QStringList();
}
const QString &errorString() const Q_DECL_OVERRIDE { return m_errorString; }
QString errorString() const Q_DECL_OVERRIDE { return m_errorString; }
int touchpadCount() const Q_DECL_OVERRIDE { return m_device ? 1 : 0; }
void setTouchpadOff(TouchpadOffState) Q_DECL_OVERRIDE;
......
......@@ -43,7 +43,7 @@ public:
virtual bool isChangedConfig() const {return false;}
virtual QStringList supportedParameters() const {return QStringList();}
virtual const QString &errorString() const {return QString();}
virtual QString errorString() const {return QString();}
virtual QVector<QObject*> getDevices() const { return QVector<QObject*>(); }
virtual int touchpadCount() const {return 0;}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment