forked from qt-creator/qt-creator
fix a few krazy warnings
This commit is contained in:
@@ -120,7 +120,7 @@ void PdbEngine::postDirectCommand(const QByteArray &command)
|
||||
{
|
||||
QTC_ASSERT(m_pdbProc.state() == QProcess::Running, notifyEngineIll());
|
||||
showMessage(_(command), LogInput);
|
||||
m_pdbProc.write(command + "\n");
|
||||
m_pdbProc.write(command + '\n');
|
||||
}
|
||||
|
||||
void PdbEngine::postCommand(const QByteArray &command,
|
||||
@@ -138,7 +138,7 @@ void PdbEngine::postCommand(const QByteArray &command,
|
||||
m_commands.enqueue(cmd);
|
||||
qDebug() << "ENQUEUE: " << command << cmd.callbackName;
|
||||
showMessage(_(cmd.command), LogInput);
|
||||
m_pdbProc.write(cmd.command + "\n");
|
||||
m_pdbProc.write(cmd.command + '\n');
|
||||
}
|
||||
|
||||
void PdbEngine::shutdownInferior()
|
||||
|
@@ -2774,7 +2774,7 @@ EventResult FakeVimHandler::Private::handleInsertMode(const Input &input)
|
||||
} else if (input.isReturn()) {
|
||||
m_submode = NoSubMode;
|
||||
insertText(Register("\n"));
|
||||
m_lastInsertion += "\n";
|
||||
m_lastInsertion += '\n';
|
||||
insertAutomaticIndentation(true);
|
||||
setTargetColumn();
|
||||
} else if (input.isBackspace()) {
|
||||
@@ -2974,7 +2974,7 @@ EventResult FakeVimHandler::Private::handleSearchSubSubMode(const Input &input)
|
||||
sd.highlightMatches = true;
|
||||
search(sd);
|
||||
}
|
||||
finishMovement(m_commandPrefix + needle + "\n");
|
||||
finishMovement(m_commandPrefix + needle + '\n');
|
||||
}
|
||||
enterCommandMode();
|
||||
highlightMatches(needle);
|
||||
@@ -4613,7 +4613,7 @@ void FakeVimHandler::Private::enterExMode()
|
||||
m_mode = ExMode;
|
||||
m_submode = NoSubMode;
|
||||
m_subsubmode = NoSubSubMode;
|
||||
m_commandPrefix = ":";
|
||||
m_commandPrefix = ':';
|
||||
}
|
||||
|
||||
void FakeVimHandler::Private::recordJump()
|
||||
|
@@ -151,7 +151,7 @@ void MacroManager::MacroManagerPrivate::initialize()
|
||||
QStringList files = dir.entryList(filter, QDir::Files);
|
||||
|
||||
foreach (const QString &name, files) {
|
||||
QString fileName = dir.absolutePath()+"/"+name;
|
||||
QString fileName = dir.absolutePath() + '/' + name;
|
||||
Macro *macro = new Macro;
|
||||
macro->loadHeader(fileName);
|
||||
addMacro(macro);
|
||||
|
Reference in New Issue
Block a user