From 147a3c27c4db8d5cb5c2cedba9a51c1bb216d307 Mon Sep 17 00:00:00 2001 From: Orgad Shaneh Date: Sun, 7 Oct 2018 22:38:47 +0300 Subject: Debugger: Strip QLatin1* where possible Change-Id: Idcab23875b5dc2ecf55e3303f417b995e2252720 Reviewed-by: hjk --- src/plugins/debugger/debuggersourcepathmappingwidget.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/plugins/debugger/debuggersourcepathmappingwidget.cpp') 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()), -- cgit v1.2.1