Remove endl at the end of qdebug

wilder
Laurent Montel 6 years ago
parent d8abb64b32
commit f9d50c2022
  1. 4
      src/core/kdesktopfile.cpp
  2. 4
      src/kconf_update/kconf_update.cpp

@ -159,7 +159,7 @@ bool KDesktopFile::isAuthorizedDesktopFile(const QString &path)
// Forbid desktop files outside of standard locations if kiosk is set so
if (!KAuthorized::authorize(QStringLiteral("run_desktop_files"))) {
qCWarning(KCONFIG_CORE_LOG) << "Access to '" << path << "' denied because of 'run_desktop_files' restriction." << endl;
qCWarning(KCONFIG_CORE_LOG) << "Access to '" << path << "' denied because of 'run_desktop_files' restriction.";
return false;
}
@ -170,7 +170,7 @@ bool KDesktopFile::isAuthorizedDesktopFile(const QString &path)
return true;
}
qCWarning(KCONFIG_CORE_LOG) << "Access to '" << path << "' denied, not owned by root, executable flag not set." << endl;
qCWarning(KCONFIG_CORE_LOG) << "Access to '" << path << "' denied, not owned by root, executable flag not set.";
return false;
}

@ -832,7 +832,7 @@ void KonfUpdate::gotScript(const QString &_script)
if (m_debug) {
QFile scriptFile(path);
if (scriptFile.open(QIODevice::ReadOnly)) {
qCDebug(KCONF_UPDATE_LOG) << "Script contents is:" << endl << scriptFile.readAll();
qCDebug(KCONF_UPDATE_LOG) << "Script contents is:\n" << scriptFile.readAll();
}
}
proc.start(cmd, args);
@ -870,7 +870,7 @@ void KonfUpdate::gotScript(const QString &_script)
qCDebug(KCONF_UPDATE_LOG) << "Script output stored in" << scriptOut.fileName();
QFile output(scriptOut.fileName());
if (output.open(QIODevice::ReadOnly)) {
qCDebug(KCONF_UPDATE_LOG) << "Script output is:" << endl << output.readAll();
qCDebug(KCONF_UPDATE_LOG) << "Script output is:\n" << output.readAll();
}
}

Loading…
Cancel
Save