From: Steve Brokenshire Date: Sun, 31 Jan 2016 10:46:15 +0000 (+0000) Subject: Replaced mentions of VEVENT with VTODO in CalendarTaskObject. X-Git-Tag: release-0.02~594 X-Git-Url: http://Server1/repobrowser/?a=commitdiff_plain;h=c778e14122779caa69c6d6e3ccb64672c5721c9e;p=xestiacalendar%2F.git Replaced mentions of VEVENT with VTODO in CalendarTaskObject. --- 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 {