[pim/akonadi-calendar] src: Don't use translated strings in debug output
Volker Krause <[email protected]>
| Newsgroups | gmane.comp.kde.cvs |
|---|---|
| Message-ID | <[email protected]> |
Git commit d5b5a9e94da8d26a3a2967a069bfc9eb88d2d524 by Volker Krause.
Committed on 21/07/2026 at 16:04.
Pushed by vkrause into branch 'master'.
Don't use translated strings in debug output
https://invent.kde.org/frameworks/kcalendarcore/-/merge_requests/245
solves this properly, and this removes the only user of
KCalUtils::Stringify::scheduleMessageStatus.
M +5 -7 src/scheduler_p.cpp
https://invent.kde.org/pim/akonadi-calendar/-/commit/d5b5a9e94da8d26a3a2967a069bfc9eb88d2d524
diff --git a/src/scheduler_p.cpp b/src/scheduler_p.cpp
index e7416fc8..01ad2190 100644
--- a/src/scheduler_p.cpp
+++ b/src/scheduler_p.cpp
@@ -10,8 +10,6 @@ using namespace Qt::Literals::StringLiterals;
#include "calendarbase_p.h"
-#include <KCalUtils/Stringify>
-
#include <KCalendarCore/FreeBusyCache>
#include <KCalendarCore/ICalFormat>
@@ -117,7 +115,7 @@ void Scheduler::acceptPublish(const IncidenceBase::Ptr &incidence,
QString errorString;
Result result = ResultSuccess;
- qCDebug(AKONADICALENDAR_LOG) << "status=" << KCalUtils::Stringify::scheduleMessageStatus(status);
+ qCDebug(AKONADICALENDAR_LOG) << "status=" << status;
Incidence::Ptr const newInc = incidence.staticCast<Incidence>();
Incidence::Ptr const calInc = calendar->incidence(incidence->uid());
@@ -174,8 +172,8 @@ void Scheduler::acceptRequest(const IncidenceBase::Ptr &incidenceBase,
Result result = ResultSuccess;
const Incidence::List existingIncidences = calendar->incidencesFromSchedulingID(schedulingUid);
- qCDebug(AKONADICALENDAR_LOG) << "status=" << KCalUtils::Stringify::scheduleMessageStatus(status) << ": found " << existingIncidences.count()
- << " incidences with schedulingID " << incidence->schedulingID() << "; uid was = " << schedulingUid;
+ qCDebug(AKONADICALENDAR_LOG) << "status=" << status << ": found " << existingIncidences.count() << " incidences with schedulingID "
+ << incidence->schedulingID() << "; uid was = " << schedulingUid;
if (existingIncidences.isEmpty()) {
// Perfectly normal if the incidence doesn't exist. This is probably
@@ -334,8 +332,8 @@ void Scheduler::acceptCancel(const IncidenceBase::Ptr &incidenceBase,
}
const Incidence::List existingIncidences = calendar->incidencesFromSchedulingID(incidence->uid());
- qCDebug(AKONADICALENDAR_LOG) << "Scheduler::acceptCancel=" << KCalUtils::Stringify::scheduleMessageStatus(status) << ": found "
- << existingIncidences.count() << " incidences with schedulingID " << incidence->schedulingID();
+ qCDebug(AKONADICALENDAR_LOG) << "Scheduler::acceptCancel=" << status << ": found " << existingIncidences.count() << " incidences with schedulingID "
+ << incidence->schedulingID();
Result result = ResultIncidenceToDeleteNotFound;
const QString errorString = i18n("Could not find incidence to delete.");