Const'ify two static variables

Even though the variables are local, they were exposed as writable
references. Turning those variables into constants and propagating the
constness prevents accidental modifications.

Change-Id: If874ae4995fb95434ad28da6682c980f90666061
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
Bernhard Beschow
2017-11-11 12:42:01 +01:00
parent d76c869e56
commit 88839a8cfa
3 changed files with 7 additions and 7 deletions

View File

@@ -111,7 +111,7 @@ private:
PluginSpec *q;
bool reportError(const QString &err);
static QRegExp &versionRegExp();
static const QRegExp &versionRegExp();
};
} // namespace Internal