fix a few krazy warnings

This commit is contained in:
hjk
2011-02-23 15:28:39 +01:00
parent 2e59bc9a66
commit 7a35865c50
3 changed files with 6 additions and 6 deletions

View File

@@ -120,7 +120,7 @@ void PdbEngine::postDirectCommand(const QByteArray &command)
{ {
QTC_ASSERT(m_pdbProc.state() == QProcess::Running, notifyEngineIll()); QTC_ASSERT(m_pdbProc.state() == QProcess::Running, notifyEngineIll());
showMessage(_(command), LogInput); showMessage(_(command), LogInput);
m_pdbProc.write(command + "\n"); m_pdbProc.write(command + '\n');
} }
void PdbEngine::postCommand(const QByteArray &command, void PdbEngine::postCommand(const QByteArray &command,
@@ -138,7 +138,7 @@ void PdbEngine::postCommand(const QByteArray &command,
m_commands.enqueue(cmd); m_commands.enqueue(cmd);
qDebug() << "ENQUEUE: " << command << cmd.callbackName; qDebug() << "ENQUEUE: " << command << cmd.callbackName;
showMessage(_(cmd.command), LogInput); showMessage(_(cmd.command), LogInput);
m_pdbProc.write(cmd.command + "\n"); m_pdbProc.write(cmd.command + '\n');
} }
void PdbEngine::shutdownInferior() void PdbEngine::shutdownInferior()

View File

@@ -2774,7 +2774,7 @@ EventResult FakeVimHandler::Private::handleInsertMode(const Input &input)
} else if (input.isReturn()) { } else if (input.isReturn()) {
m_submode = NoSubMode; m_submode = NoSubMode;
insertText(Register("\n")); insertText(Register("\n"));
m_lastInsertion += "\n"; m_lastInsertion += '\n';
insertAutomaticIndentation(true); insertAutomaticIndentation(true);
setTargetColumn(); setTargetColumn();
} else if (input.isBackspace()) { } else if (input.isBackspace()) {
@@ -2974,7 +2974,7 @@ EventResult FakeVimHandler::Private::handleSearchSubSubMode(const Input &input)
sd.highlightMatches = true; sd.highlightMatches = true;
search(sd); search(sd);
} }
finishMovement(m_commandPrefix + needle + "\n"); finishMovement(m_commandPrefix + needle + '\n');
} }
enterCommandMode(); enterCommandMode();
highlightMatches(needle); highlightMatches(needle);
@@ -4613,7 +4613,7 @@ void FakeVimHandler::Private::enterExMode()
m_mode = ExMode; m_mode = ExMode;
m_submode = NoSubMode; m_submode = NoSubMode;
m_subsubmode = NoSubSubMode; m_subsubmode = NoSubSubMode;
m_commandPrefix = ":"; m_commandPrefix = ':';
} }
void FakeVimHandler::Private::recordJump() void FakeVimHandler::Private::recordJump()

View File

@@ -151,7 +151,7 @@ void MacroManager::MacroManagerPrivate::initialize()
QStringList files = dir.entryList(filter, QDir::Files); QStringList files = dir.entryList(filter, QDir::Files);
foreach (const QString &name, files) { foreach (const QString &name, files) {
QString fileName = dir.absolutePath()+"/"+name; QString fileName = dir.absolutePath() + '/' + name;
Macro *macro = new Macro; Macro *macro = new Macro;
macro->loadHeader(fileName); macro->loadHeader(fileName);
addMacro(macro); addMacro(macro);