diff options
| author | Méven Car <[email protected]> | 2026-01-22 17:06:16 +0100 |
|---|---|---|
| committer | Méven Car <[email protected]> | 2026-01-22 17:06:16 +0100 |
| commit | 7570ba16a9cbc911df7a03394d2128c63d8032da (patch) | |
| tree | af622862c368f4e5de91f1d887dced4b858cb27c /src | |
| parent | 3b89b43f097342bc76ab7b235f9649077a87deff (diff) | |
clang-tidy: fix performance-avoid-endl
Diffstat (limited to 'src')
| -rw-r--r-- | src/admin/workerintegration.cpp | 2 | ||||
| -rw-r--r-- | src/main.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/admin/workerintegration.cpp b/src/admin/workerintegration.cpp index 8a24619ab..2e1986bae 100644 --- a/src/admin/workerintegration.cpp +++ b/src/admin/workerintegration.cpp @@ -62,7 +62,7 @@ void Admin::guideUserTowardsInstallingAdminWorker() DolphinPackageInstaller adminWorkerInstaller{ADMIN_WORKER_PACKAGE_NAME, QUrl(QStringLiteral("appstream://org.kde.kio.admin")), isWorkerInstalled}; QObject::connect(&adminWorkerInstaller, &KJob::result, [](KJob *job) { if (job->error()) { - std::cout << qPrintable(job->errorString()) << std::endl; + std::cout << qPrintable(job->errorString()) << '\n'; exit(1); } }); diff --git a/src/main.cpp b/src/main.cpp index 58999a258..eeb01854b 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -60,7 +60,7 @@ int main(int argc, char **argv) "@info:shell %1 is a terminal command", "Running <application>Dolphin</application> with <command>sudo</command> is discouraged. Please run <icode>%1</icode> instead.", QStringLiteral("dolphin --sudo"))) - << std::endl; + << '\n'; // We could perform a privilege de-escalation here and continue as normal. It is a bit safer though to simply let the user restart without sudo. return EXIT_FAILURE; } |
