From c778e14122779caa69c6d6e3ccb64672c5721c9e Mon Sep 17 00:00:00 2001 From: Steve Brokenshire Date: Sun, 31 Jan 2016 10:46:15 +0000 Subject: [PATCH] Replaced mentions of VEVENT with VTODO in CalendarTaskObject. --- source/objects/calendartask/CalendarTask.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/source/objects/calendartask/CalendarTask.cpp b/source/objects/calendartask/CalendarTask.cpp index eb99179..4e56efb 100644 --- a/source/objects/calendartask/CalendarTask.cpp +++ b/source/objects/calendartask/CalendarTask.cpp @@ -11,7 +11,7 @@ CalendarObjectValidResult CalendarTaskObject::ValidObject(){ int SeekCount = 0; string PropertyName; - // Look for BEGIN:VEVENT. + // Look for BEGIN:VTODO. for (vector::iterator iter = ObjectName.begin(); iter != ObjectName.end(); iter++){ @@ -65,7 +65,7 @@ CalendarObjectValidResult CalendarTaskObject::ValidObject(){ } SeekCount++; - + } SeekCount = 0; @@ -99,7 +99,7 @@ CalendarObjectValidResult CalendarTaskObject::ValidObject(){ SeekCount = 0; - // Look for END:VEVENT. + // Look for END:VTODO. for (vector::iterator iter = ObjectName.begin(); iter != ObjectName.end(); iter++){ @@ -119,13 +119,13 @@ CalendarObjectValidResult CalendarTaskObject::ValidObject(){ } - // Check if the VEVENT is valid. - + // Check if the VTODO is valid. + if (ValidBegin == true && ValidEnd == true && ValidDateTimeStamp == true && ValidUniqueID == true){ - + return CALENDAROBJECTVALID_OK; } else { -- 2.39.5