diff options
author | Friedemann Kleint <Friedemann.Kleint@nokia.com> | 2012-08-22 11:58:33 +0200 |
---|---|---|
committer | hjk <qthjk@ovi.com> | 2012-08-22 12:24:24 +0200 |
commit | 2f51579fe4bf947784135f02e10f129cc75ad695 (patch) | |
tree | 885612432ba452e2af685c47fe4d5ef6310827c8 /src/plugins/debugger/gdb/coregdbadapter.cpp | |
parent | 0418e6dc64b196c8db4050f53a42d3f5bf721e8b (diff) | |
download | qt-creator-2f51579fe4bf947784135f02e10f129cc75ad695.tar.gz |
Debugger: Fix string usages.
- Compile with QT_NO_CAST_FROM_ASCII.
- Remove single character string constants.
Change-Id: Icece98619b6c30e047d3fce00e6ae74bbcd53c67
Reviewed-by: hjk <qthjk@ovi.com>
Diffstat (limited to 'src/plugins/debugger/gdb/coregdbadapter.cpp')
-rw-r--r-- | src/plugins/debugger/gdb/coregdbadapter.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/plugins/debugger/gdb/coregdbadapter.cpp b/src/plugins/debugger/gdb/coregdbadapter.cpp index f6ca7af366..0defb237fc 100644 --- a/src/plugins/debugger/gdb/coregdbadapter.cpp +++ b/src/plugins/debugger/gdb/coregdbadapter.cpp @@ -28,6 +28,8 @@ ** **************************************************************************/ +#define QT_NO_CAST_FROM_ASCII + #include "coregdbadapter.h" #include "debuggerstartparameters.h" @@ -94,7 +96,7 @@ void GdbCoreEngine::continueSetupEngine() // Read executable from core. ElfReader reader(coreFileName()); bool isCore = false; - m_executable = reader.readCoreName(&isCore); + m_executable = QString::fromLocal8Bit(reader.readCoreName(&isCore)); if (!isCore) { showMessageBox(QMessageBox::Warning, @@ -212,7 +214,9 @@ void GdbCoreEngine::unpackCoreIfNeeded() QProcess *process = new QProcess(this); process->setWorkingDirectory(QDir::tempPath()); - process->start("/usr/bin/lzop", QStringList() << "-o" << m_tempCoreName << "-x" << m_coreName); + QStringList arguments; + arguments << QLatin1String("-o") << m_tempCoreName << QLatin1String("-x") << m_coreName; + process->start(QLatin1String("/usr/bin/lzop"), arguments); connect(process, SIGNAL(finished(int)), SLOT(continueSetupEngine())); } |