Consistently do not close with endl with qCDebug & Co.

Any linebreaks per message for output on console are added by the
logging/message handlers
parent c109a789
......@@ -185,7 +185,7 @@ NavigationContextPointer AbstractNavigationContext::execute(const NavigationActi
return executeKeyAction(action.key);
if (!action.decl && (action.type != NavigationAction::JumpToSource || action.document.isEmpty())) {
qCDebug(LANGUAGE) << "Navigation-action has invalid declaration" << endl;
qCDebug(LANGUAGE) << "Navigation-action has invalid declaration";
return NavigationContextPointer(this);
}
......@@ -193,7 +193,7 @@ NavigationContextPointer AbstractNavigationContext::execute(const NavigationActi
case NavigationAction::ExecuteKey:
break;
case NavigationAction::None:
qCDebug(LANGUAGE) << "Tried to execute an invalid action in navigation-widget" << endl;
qCDebug(LANGUAGE) << "Tried to execute an invalid action in navigation-widget";
break;
case NavigationAction::NavigateDeclaration:
{
......@@ -482,7 +482,7 @@ NavigationContextPointer AbstractNavigationContext::acceptLink(const QString& li
const auto actionIt = d->m_links.constFind(link);
if (actionIt == d->m_links.constEnd()) {
qCDebug(LANGUAGE) << "Executed unregistered link " << link << endl;
qCDebug(LANGUAGE) << "Executed unregistered link " << link;
return NavigationContextPointer(this);
}
......
......@@ -450,7 +450,7 @@ QString SourceFormatterController::addModelineForCurrentLang(QString input, cons
modeline.append(QStringLiteral("tab-width %1; ").arg(indentation.indentationTabWidth));
}
qCDebug(SHELL) << "created modeline: " << modeline << endl;
qCDebug(SHELL) << "created modeline: " << modeline;
QRegExp kateModeline(QStringLiteral("^\\s*//\\s*kate:(.*)$"));
......@@ -460,7 +460,7 @@ QString SourceFormatterController::addModelineForCurrentLang(QString input, cons
QString line = is.readLine();
// replace only the options we care about
if (kateModeline.indexIn(line) >= 0) { // match
qCDebug(SHELL) << "Found a kate modeline: " << line << endl;
qCDebug(SHELL) << "Found a kate modeline: " << line;
modelinefound = true;
QString options = kateModeline.cap(1);
const QStringList optionList = options.split(QLatin1Char(';'), QString::SkipEmptyParts);
......@@ -471,7 +471,7 @@ QString SourceFormatterController::addModelineForCurrentLang(QString input, cons
if(s.startsWith(QLatin1Char(' ')))
s.remove(0, 1);
os << s << ";";
qCDebug(SHELL) << "Found unknown option: " << s << endl;
qCDebug(SHELL) << "Found unknown option: " << s;
}
}
os << endl;
......
......@@ -121,7 +121,7 @@ void SourceFormatterJob::formatFile(const QUrl& url)
{
// check mimetype
QMimeType mime = QMimeDatabase().mimeTypeForUrl(url);
qCDebug(SHELL) << "Checking file " << url << " of mime type " << mime.name() << endl;
qCDebug(SHELL) << "Checking file " << url << " of mime type " << mime.name();
auto formatter = m_sourceFormatterController->formatterForUrl(url, mime);
if (!formatter) // unsupported mime type
return;
......@@ -129,12 +129,12 @@ void SourceFormatterJob::formatFile(const QUrl& url)
// if the file is opened in the editor, format the text in the editor without saving it
auto doc = ICore::self()->documentController()->documentForUrl(url);
if (doc) {
qCDebug(SHELL) << "Processing file " << url << "opened in editor" << endl;
qCDebug(SHELL) << "Processing file " << url << "opened in editor";
m_sourceFormatterController->formatDocument(doc, formatter, mime);
return;
}
qCDebug(SHELL) << "Processing file " << url << endl;
qCDebug(SHELL) << "Processing file " << url;
auto getJob = KIO::storedGet(url);
// TODO: make also async and use start() and integrate using setError and setErrorString.
if (getJob->exec()) {
......
......@@ -60,7 +60,7 @@ void AStyleFormatter::setOption(const QString &key, const QVariant &value)
void AStyleFormatter::updateFormatter()
{
qCDebug(KDEV_ASTYLE) << "Updating option with: " << ISourceFormatter::optionMapToString(m_options) << endl;
qCDebug(KDEV_ASTYLE) << "Updating option with: " << ISourceFormatter::optionMapToString(m_options);
// fill
int wsCount = m_options[QStringLiteral("FillCount")].toInt();
if(m_options[QStringLiteral("Fill")].toString() == QLatin1String("Tabs")) {
......@@ -313,7 +313,7 @@ bool AStyleFormatter::predefinedStyle( const QString & style )
QVariant AStyleFormatter::option(const QString &key)
{
if(!m_options.contains(key))
qCDebug(KDEV_ASTYLE) << "Missing option name " << key << endl;
qCDebug(KDEV_ASTYLE) << "Missing option name " << key;
return m_options[key];
}
......
......@@ -159,7 +159,7 @@ QString CustomScriptPlugin::formatSourceWithStyle(SourceFormatterStyle style, co
proc.start();
if (!proc.waitForStarted()) {
qCDebug(CUSTOMSCRIPT) << "Unable to start indent" << endl;
qCDebug(CUSTOMSCRIPT) << "Unable to start indent";
return text;
}
......@@ -169,7 +169,7 @@ QString CustomScriptPlugin::formatSourceWithStyle(SourceFormatterStyle style, co
proc.closeWriteChannel();
if (!proc.waitForFinished()) {
qCDebug(CUSTOMSCRIPT) << "Process doesn't finish" << endl;
qCDebug(CUSTOMSCRIPT) << "Process doesn't finish";
return text;
}
......
......@@ -213,7 +213,7 @@ KDevelop::VcsJob* KDevSvnPlugin::commit(const QString& message, const QList<QUrl
KDevelop::IBasicVersionControl::RecursionMode recursion)
{
auto* job = new SvnCommitJob(this);
qCDebug(PLUGIN_SVN) << "Committing locations:" << localLocations << endl;
qCDebug(PLUGIN_SVN) << "Committing locations:" << localLocations;
job->setUrls(localLocations);
job->setCommitMessage(message) ;
job->setRecursive((recursion == KDevelop::IBasicVersionControl::Recursive));
......
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