From 96740b5c1364f3ef4a32110ea98dde6128e922fc Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Thu, 2 Aug 2018 15:41:55 +0200 Subject: Cleanup --- examples/caldavresource/caldavresource.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'examples/caldavresource') diff --git a/examples/caldavresource/caldavresource.cpp b/examples/caldavresource/caldavresource.cpp index d33f625..8574575 100644 --- a/examples/caldavresource/caldavresource.cpp +++ b/examples/caldavresource/caldavresource.cpp @@ -130,7 +130,7 @@ protected: switch (operation) { case Sink::Operation_Creation: { auto rawIcal = localItem.getIcal(); - if (rawIcal == "") { + if (rawIcal.isEmpty()) { return KAsync::error("No ICal in item for creation replay"); } @@ -152,7 +152,7 @@ protected: } case Sink::Operation_Modification: auto rawIcal = localItem.getIcal(); - if (rawIcal == "") { + if (rawIcal.isEmpty()) { return KAsync::error("No ICal in item for modification replay"); } -- cgit v1.2.3