Make QQmlDebugService::name() a const reference
Change-Id: I7e75be206a1821018efc435337963f131b2996a8 Reviewed-by: Erik Verbruggen <erik.verbruggen@theqtcompany.com>
This commit is contained in:
parent
88245e89d3
commit
b4dd7b8077
|
@ -94,7 +94,7 @@ QQmlDebugService::~QQmlDebugService()
|
|||
inst->removeService(this);
|
||||
}
|
||||
|
||||
QString QQmlDebugService::name() const
|
||||
const QString &QQmlDebugService::name() const
|
||||
{
|
||||
Q_D(const QQmlDebugService);
|
||||
return d->name;
|
||||
|
|
|
@ -64,7 +64,7 @@ class Q_QML_PRIVATE_EXPORT QQmlDebugService : public QObject
|
|||
public:
|
||||
~QQmlDebugService();
|
||||
|
||||
QString name() const;
|
||||
const QString &name() const;
|
||||
float version() const;
|
||||
|
||||
enum State { NotConnected, Unavailable, Enabled };
|
||||
|
|
Loading…
Reference in New Issue