Commit d22c8d66 authored by Dimitris Kardarakos's avatar Dimitris Kardarakos

Avoid some clazy warnings

parent 04a12d52
Pipeline #6326 passed with stage
in 5 minutes and 31 seconds
......@@ -51,7 +51,7 @@ void EventController::addEdit(LocalCalendar *calendar, const QVariantMap &eventD
Event::Ptr event;
if (uid == "") {
event = Event::Ptr(new Event());
event->setUid(summary.left(1) + now.toString("yyyyMMddhhmmsszzz"));
event->setUid(summary.at(0) + now.toString("yyyyMMddhhmmsszzz"));
}
else {
event = memoryCalendar->event(uid);
......
......@@ -43,7 +43,7 @@ void TodoController::addEdit(LocalCalendar *calendar, const QVariantMap& todo)
if(uid == "")
{
vtodo = Todo::Ptr(new Todo());
vtodo->setUid(summary.left(1) + now.toString("yyyyMMddhhmmsszzz"));
vtodo->setUid(summary.at(0) + now.toString("yyyyMMddhhmmsszzz"));
}
else
{
......
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