forked from qt-creator/qt-creator
CPlusPlus: Microoptimizations
Inline some simple accessors, return references instead of copies in some getters, Change-Id: I136574823c79ad0c63ed354b78e1ad83908e7ae5 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
@@ -88,7 +88,7 @@ public:
|
||||
void addFormal(const QByteArray &formal)
|
||||
{ _formals.append(formal); }
|
||||
|
||||
QString fileName() const
|
||||
const QString &fileName() const
|
||||
{ return _fileName; }
|
||||
|
||||
void setFileName(const QString &fileName)
|
||||
|
||||
Reference in New Issue
Block a user