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

Use truncate directly

parent 74d5a648
......@@ -783,7 +783,7 @@ void KAEventPrivate::set(const KCalendarCore::Event::Ptr &event)
QString mins = flags.at(i + 1);
if (mins.endsWith(QLatin1Char('D'))) {
mDeferDefaultDateOnly = true;
mins.truncate(mins.length() - 1);
mins.chop(1);
}
const int n = static_cast<int>(mins.toUInt(&ok));
if (!ok) {
......
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