Commit 7a35865c authored by hjk's avatar hjk

fix a few krazy warnings

parent 2e59bc9a
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment