Make QQmlDebugService::name() a const reference

Change-Id: I7e75be206a1821018efc435337963f131b2996a8
Reviewed-by: Erik Verbruggen <erik.verbruggen@theqtcompany.com>
This commit is contained in:
Ulf Hermann 2015-07-13 14:19:38 +02:00
parent 88245e89d3
commit b4dd7b8077
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -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 };