diff options
| author | Orgad Shaneh <orgad.shaneh@audiocodes.com> | 2018-10-07 22:38:47 +0300 |
|---|---|---|
| committer | Orgad Shaneh <orgads@gmail.com> | 2018-10-13 16:32:31 +0000 |
| commit | 147a3c27c4db8d5cb5c2cedba9a51c1bb216d307 (patch) | |
| tree | 5fd2f6af06da917ca1a7fd5b6fea56fe4c269337 /src/plugins/debugger/debuggersourcepathmappingwidget.cpp | |
| parent | d0d6f9949114c55aa728f99cb321fa0779efcf31 (diff) | |
| download | qt-creator-147a3c27c4db8d5cb5c2cedba9a51c1bb216d307.tar.gz | |
Debugger: Strip QLatin1* where possible
Change-Id: Idcab23875b5dc2ecf55e3303f417b995e2252720
Reviewed-by: hjk <hjk@qt.io>
Diffstat (limited to 'src/plugins/debugger/debuggersourcepathmappingwidget.cpp')
| -rw-r--r-- | src/plugins/debugger/debuggersourcepathmappingwidget.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/plugins/debugger/debuggersourcepathmappingwidget.cpp b/src/plugins/debugger/debuggersourcepathmappingwidget.cpp index 4d53e55f2d..5812763fc4 100644 --- a/src/plugins/debugger/debuggersourcepathmappingwidget.cpp +++ b/src/plugins/debugger/debuggersourcepathmappingwidget.cpp @@ -133,8 +133,8 @@ SourcePathMap SourcePathMappingModel::sourcePathMap() const // Check a mapping whether it still contains a placeholder. bool SourcePathMappingModel::isNewPlaceHolder(const Mapping &m) const { - const QLatin1Char lessThan('<'); - const QLatin1Char greaterThan('>'); + const QChar lessThan('<'); + const QChar greaterThan('>'); return m.first.isEmpty() || m.first.startsWith(lessThan) || m.first.endsWith(greaterThan) || m.first == m_newSourcePlaceHolder @@ -253,7 +253,7 @@ DebuggerSourcePathMappingWidget::DebuggerSourcePathMappingWidget(QWidget *parent // Edit part m_targetChooser->setExpectedKind(PathChooser::ExistingDirectory); - m_targetChooser->setHistoryCompleter(QLatin1String("Debugger.MappingTarget.History")); + m_targetChooser->setHistoryCompleter("Debugger.MappingTarget.History"); connect(m_sourceLineEdit, &QLineEdit::textChanged, this, &DebuggerSourcePathMappingWidget::slotEditSourceFieldChanged); connect(m_targetChooser, &PathChooser::pathChanged, @@ -407,8 +407,8 @@ static QString findQtInstallPath(const FileName &qmakePath) return QString(); QProcess proc; QStringList args; - args.append(QLatin1String("-query")); - args.append(QLatin1String("QT_INSTALL_HEADERS")); + args.append("-query"); + args.append("QT_INSTALL_HEADERS"); proc.start(qmakePath.toString(), args); if (!proc.waitForStarted()) { qWarning("%s: Cannot start '%s': %s", Q_FUNC_INFO, qPrintable(qmakePath.toString()), |
