From 5dbd2e045c6c6b258fb94ee02ac2c9998c5b0733 Mon Sep 17 00:00:00 2001 From: Wolfgang Sourdeau Date: Fri, 14 Oct 2011 19:50:21 +0000 Subject: [PATCH] Monotone-Parent: d589e40f05abe383340293f75981bab0f0ee6396 Monotone-Revision: 952e5ac16e76ebd500cfd19dcb5355f231d38bfc Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2011-10-14T19:50:21 Monotone-Branch: ca.inverse.sogo --- OpenChange/MAPIStoreDraftsMessage.m | 5 +++-- OpenChange/MAPIStoreObject.h | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/OpenChange/MAPIStoreDraftsMessage.m b/OpenChange/MAPIStoreDraftsMessage.m index 8bd7cd6ff..aba42dac4 100644 --- a/OpenChange/MAPIStoreDraftsMessage.m +++ b/OpenChange/MAPIStoreDraftsMessage.m @@ -20,6 +20,7 @@ * Boston, MA 02111-1307, USA. */ +#import #import #import #import @@ -658,14 +659,14 @@ e) - (NSDate *) creationTime { return ([sogoObject isKindOfClass: SOGoDraftObjectK] - ? [newProperties objectForKey: MAPIPropertyKey (PR_CREATION_TIME)] + ? (NSDate *) [newProperties objectForKey: MAPIPropertyKey (PR_CREATION_TIME)] : [super creationTime]); } - (NSDate *) lastModificationTime { return ([sogoObject isKindOfClass: SOGoDraftObjectK] - ? [newProperties + ? (NSDate *) [newProperties objectForKey: MAPIPropertyKey (PR_LAST_MODIFICATION_TIME)] : [super lastModificationTime]); } diff --git a/OpenChange/MAPIStoreObject.h b/OpenChange/MAPIStoreObject.h index 9920b664e..d68023aae 100644 --- a/OpenChange/MAPIStoreObject.h +++ b/OpenChange/MAPIStoreObject.h @@ -27,7 +27,7 @@ #import -@class NSCalendarDate; +@class NSDate; @class NSData; @class NSString; @class NSMutableArray;