diff options
author | Orgad Shaneh <orgad.shaneh@audiocodes.com> | 2015-01-31 22:07:42 +0200 |
---|---|---|
committer | hjk <hjk@theqtcompany.com> | 2015-02-02 08:43:04 +0000 |
commit | 349f4150672d98ce13c0c5c2232582210451e01e (patch) | |
tree | 82ec26f1812f6bae78646abba485bb8ab55102f6 /src/plugins/valgrind/callgrind | |
parent | 1bcfa137a3e625eaafba2e1b5622c87946da7ccc (diff) | |
download | qt-creator-349f4150672d98ce13c0c5c2232582210451e01e.tar.gz |
Valgrind: Replace QDir::separator with slash
Change-Id: I8f8192dc065702cb1c6bb218b8d992bb9775cd10
Reviewed-by: hjk <hjk@theqtcompany.com>
Diffstat (limited to 'src/plugins/valgrind/callgrind')
-rw-r--r-- | src/plugins/valgrind/callgrind/callgrindcontroller.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/plugins/valgrind/callgrind/callgrindcontroller.cpp b/src/plugins/valgrind/callgrind/callgrindcontroller.cpp index c68b194617..07cccf0e33 100644 --- a/src/plugins/valgrind/callgrind/callgrindcontroller.cpp +++ b/src/plugins/valgrind/callgrind/callgrindcontroller.cpp @@ -200,7 +200,7 @@ void CallgrindController::getLocalDataFile() arg(m_valgrindProc->pid()); const QString workingDir = m_valgrindProc->workingDirectory(); // first, set the to-be-parsed file to callgrind.out.PID - QString fileName = workingDir.isEmpty() ? baseFileName : (workingDir + QDir::separator() + baseFileName); + QString fileName = workingDir.isEmpty() ? baseFileName : (workingDir + QLatin1Char('/') + baseFileName); if (!m_valgrindProc->isLocal()) { ///TODO: error handling @@ -217,7 +217,7 @@ void CallgrindController::getLocalDataFile() QStringList outputFiles = dir.entryList(); // if there are files like callgrind.out.PID.NUM, set it to the most recent one of those if (!outputFiles.isEmpty()) - fileName = workingDir + QDir::separator() + dir.entryList().first(); + fileName = workingDir + QLatin1Char('/') + dir.entryList().first(); emit localParseDataAvailable(fileName); } @@ -237,7 +237,7 @@ void CallgrindController::foundRemoteFile() void CallgrindController::sftpInitialized() { cleanupTempFile(); - QTemporaryFile dataFile(QDir::tempPath() + QDir::separator() + QLatin1String("callgrind.out.")); + QTemporaryFile dataFile(QDir::tempPath() + QLatin1Char('/') + QLatin1String("callgrind.out.")); QTC_ASSERT(dataFile.open(), return); m_tempDataFile = dataFile.fileName(); dataFile.setAutoRemove(false); |