Fix incorrect pass by value.
Make sure we don't pass by value, but by const reference. Change-Id: Ia432e881d2b8116f22a30dfa31186479784ee4a1 Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@theqtcompany.com>bb10
parent
60a384cf2f
commit
2e18c9af26
|
|
@ -350,7 +350,7 @@ bool CeSdkHandler::retrieveAvailableSDKs()
|
|||
return !m_list.empty();
|
||||
}
|
||||
|
||||
QString CeSdkHandler::fixPaths(QString path) const
|
||||
QString CeSdkHandler::fixPaths(const QString &path) const
|
||||
{
|
||||
QRegExp searchStr(QLatin1String("(\\$\\(\\w+\\))"));
|
||||
QString fixedString = path;
|
||||
|
|
|
|||
|
|
@ -76,9 +76,9 @@ public:
|
|||
bool retrieveAvailableSDKs();
|
||||
inline QList<CeSdkInfo> listAll() const { return m_list; }
|
||||
private:
|
||||
inline QString fixPaths(QString path) const;
|
||||
void retrieveWEC6n7SDKs();
|
||||
void retrieveWEC2013SDKs();
|
||||
inline QString fixPaths(const QString &path) const;
|
||||
QStringList getMsBuildToolPaths() const;
|
||||
QStringList filterMsBuildToolPaths(const QStringList &paths) const;
|
||||
bool parseMsBuildFile(QFile *file, CeSdkInfo *info);
|
||||
|
|
|
|||
Loading…
Reference in New Issue