Commit b2f49c12 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Fix cppcheck warning

parent 0060427f
......@@ -388,7 +388,6 @@ bool KonsoleKalendar::printEventList(QTextStream *ts, Event::List *eventList, QD
bool KonsoleKalendar::printEvent(QTextStream *ts, const Event::Ptr &event, QDate dt)
{
bool status = false;
bool sameDay = true;
KonsoleKalendarExports exports;
if (event) {
......@@ -399,14 +398,16 @@ bool KonsoleKalendar::printEvent(QTextStream *ts, const Event::Ptr &event, QDate
status = exports.exportAsCSV(ts, event, dt);
break;
case ExportTypeTextShort:
case ExportTypeTextShort: {
qCDebug(KONSOLEKALENDAR_LOG) << "konsolekalendar.cpp::printEvent() |"
<< "TEXT-SHORT export";
bool sameDay = true;
if (dt.daysTo(m_saveDate)) {
sameDay = false;
m_saveDate = dt;
}
status = exports.exportAsTxtShort(ts, event, dt, sameDay);
}
break;
case ExportTypeHTML:
......
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