summaryrefslogtreecommitdiff
path: root/src/plugins
diff options
context:
space:
mode:
authorhjk <hjk@qt.io>2019-05-15 15:57:56 +0200
committerhjk <hjk@qt.io>2019-05-15 15:03:46 +0000
commit95f49285b7cd1d6b35b2dd41546da9bb533825ec (patch)
tree22c0d2c66d932e660538bc09fb062d3045a50dc0 /src/plugins
parent09c1c1a354b394ca82d6bb6226921ac415a1a8e8 (diff)
downloadqt-creator-95f49285b7cd1d6b35b2dd41546da9bb533825ec.tar.gz
Qnx/Qmake: More FileName::appendPath -> pathAppended changes
Change-Id: Ibd6639ff83ec922fade7de4115d1e777e496f3e1 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/qnx/qnxconfiguration.cpp8
-rw-r--r--src/plugins/qnx/qnxutils.cpp2
-rw-r--r--src/plugins/qtsupport/baseqtversion.cpp14
-rw-r--r--src/plugins/qtsupport/desktopqtversion.cpp4
4 files changed, 13 insertions, 15 deletions
diff --git a/src/plugins/qnx/qnxconfiguration.cpp b/src/plugins/qnx/qnxconfiguration.cpp
index 9b5ff20881..3d3a09df7b 100644
--- a/src/plugins/qnx/qnxconfiguration.cpp
+++ b/src/plugins/qnx/qnxconfiguration.cpp
@@ -354,7 +354,7 @@ void QnxConfiguration::setVersion(const QnxVersionNumber &version)
void QnxConfiguration::readInformation()
{
- QString qConfigPath = FileName(m_qnxConfiguration).appendPath("qconfig").toString();
+ const QString qConfigPath = m_qnxConfiguration.pathAppended("qconfig").toString();
QList <ConfigInstallInformation> installInfoList = QnxUtils::installedConfigs(qConfigPath);
if (installInfoList.isEmpty())
return;
@@ -418,13 +418,13 @@ void QnxConfiguration::updateTargets()
void QnxConfiguration::assignDebuggersToTargets()
{
- QDir hostUsrBinDir(FileName(m_qnxHost).appendPath("usr/bin").toString());
+ const QDir hostUsrBinDir(m_qnxHost.pathAppended("usr/bin").toString());
QStringList debuggerNames = hostUsrBinDir.entryList(
QStringList(HostOsInfo::withExecutableSuffix(QLatin1String("nto*-gdb"))),
QDir::Files);
foreach (const QString &debuggerName, debuggerNames) {
- FileName debuggerPath = FileName::fromString(hostUsrBinDir.path())
- .appendPath(debuggerName);
+ const FileName debuggerPath = FileName::fromString(hostUsrBinDir.path())
+ .pathAppended(debuggerName);
DebuggerItem item;
item.setCommand(debuggerPath);
item.reinitializeFromFile();
diff --git a/src/plugins/qnx/qnxutils.cpp b/src/plugins/qnx/qnxutils.cpp
index 8178c33f09..0bfb4dedd8 100644
--- a/src/plugins/qnx/qnxutils.cpp
+++ b/src/plugins/qnx/qnxutils.cpp
@@ -219,7 +219,7 @@ QList<QnxTarget> QnxUtils::findTargets(const Utils::FileName &basePath)
QDirIterator iterator(basePath.toString());
while (iterator.hasNext()) {
iterator.next();
- FileName libc = FileName::fromString(iterator.filePath()).appendPath("lib/libc.so");
+ const FileName libc = FileName::fromString(iterator.filePath()).pathAppended("lib/libc.so");
if (libc.exists()) {
auto abis = Abi::abisOfBinary(libc);
if (abis.isEmpty()) {
diff --git a/src/plugins/qtsupport/baseqtversion.cpp b/src/plugins/qtsupport/baseqtversion.cpp
index e2e6263416..7316994a80 100644
--- a/src/plugins/qtsupport/baseqtversion.cpp
+++ b/src/plugins/qtsupport/baseqtversion.cpp
@@ -444,12 +444,10 @@ FileName BaseQtVersion::binPath() const
FileName BaseQtVersion::mkspecsPath() const
{
- FileName result = FileName::fromUserInput(qmakeProperty("QT_HOST_DATA"));
+ const FileName result = FileName::fromUserInput(qmakeProperty("QT_HOST_DATA"));
if (result.isEmpty())
- result = FileName::fromUserInput(qmakeProperty("QMAKE_MKSPECS"));
- else
- result.appendPath("mkspecs");
- return result;
+ return FileName::fromUserInput(qmakeProperty("QMAKE_MKSPECS"));
+ return result.pathAppended("mkspecs");
}
FileName BaseQtVersion::qmlBinPath() const
@@ -906,7 +904,7 @@ void BaseQtVersion::updateMkspec() const
m_mkspec = m_mkspec.relativeChildPath(baseMkspecDir);
// qDebug() << "Setting mkspec to"<<mkspec;
} else {
- FileName sourceMkSpecPath = sourcePath().appendPath("mkspecs");
+ const FileName sourceMkSpecPath = sourcePath().pathAppended("mkspecs");
if (m_mkspec.isChildOf(sourceMkSpecPath)) {
m_mkspec = m_mkspec.relativeChildPath(sourceMkSpecPath);
} else {
@@ -1819,8 +1817,8 @@ FileNameList BaseQtVersion::qtCorePaths() const
&& file.startsWith("QtCore")
&& file.endsWith(".framework")) {
// handle Framework
- FileName lib = FileName::fromFileInfo(info);
- dynamicLibs.append(lib.appendPath(file.left(file.lastIndexOf('.'))));
+ const FileName lib = FileName::fromFileInfo(info);
+ dynamicLibs.append(lib.pathAppended(file.left(file.lastIndexOf('.'))));
} else if (info.isReadable()) {
if (file.startsWith("libQtCore")
|| file.startsWith("libQt5Core")
diff --git a/src/plugins/qtsupport/desktopqtversion.cpp b/src/plugins/qtsupport/desktopqtversion.cpp
index 30292b11ee..c3d23cb5bf 100644
--- a/src/plugins/qtsupport/desktopqtversion.cpp
+++ b/src/plugins/qtsupport/desktopqtversion.cpp
@@ -94,8 +94,8 @@ QString DesktopQtVersion::qmlsceneCommand() const
ensureMkSpecParsed();
- QString path =
- qmlBinPath().appendPath(Utils::HostOsInfo::withExecutableSuffix("qmlscene")).toString();
+ const QString path =
+ qmlBinPath().pathAppended(Utils::HostOsInfo::withExecutableSuffix("qmlscene")).toString();
m_qmlsceneCommand = QFileInfo(path).isFile() ? path : QString();