Skip to content

Commit

Permalink
fix(eas): gcc v10 compat fixes (fixes #5029)
Browse files Browse the repository at this point in the history
  • Loading branch information
extrafu committed Jun 23, 2020
1 parent b3dd794 commit e469f52
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions ActiveSync/SOGoActiveSyncDispatcher+Sync.m
Expand Up @@ -2211,7 +2211,7 @@ - (void) processSyncCollection: (id <DOMElement>) theDocumentElement

// Cache-entry still exists but folder doesn't exists or synchronize flag is not set.
// We ignore the folder and wait for foldersync to do the cleanup.
if (!(mfCollection && [mfCollection synchronize]))
if (!(mfCollection && [(SOGoGCSFolder*)mfCollection synchronize]))
{
if (debugOn)
[self logWithFormat: @"EAS - Folder %@ not found. Ignoring ...", folderName];
Expand Down Expand Up @@ -2245,7 +2245,7 @@ - (void) processSyncCollection: (id <DOMElement>) theDocumentElement
realCollectionId = [folderName realCollectionIdWithFolderType: &mergedFolderType];
mfCollection = [self collectionFromId: realCollectionId type: mergedFolderType];

if (!(mfCollection && [mfCollection synchronize]))
if (!(mfCollection && [(SOGoGCSFolder*)mfCollection synchronize]))
{
if (debugOn)
[self logWithFormat: @"EAS - Folder %@ not found. Reset personal folder to cleanup", folderName];
Expand Down
4 changes: 2 additions & 2 deletions ActiveSync/SOGoActiveSyncDispatcher.m
Expand Up @@ -977,7 +977,7 @@ - (void) processFolderSync: (id <DOMElement>) theDocumentElement
}

// Remove the folder from device if it doesn't exist, or don't want to sync it.
if (!currentFolder || !([currentFolder synchronize]))
if (!currentFolder || !([(SOGoGCSFolder*)currentFolder synchronize]))
{
// Don't send a delete when MergedFoler is set, we have done it above.
// Windows Phones don't like when a <Delete>-folder is sent twice.
Expand Down Expand Up @@ -1135,7 +1135,7 @@ - (void) processFolderSync: (id <DOMElement>) theDocumentElement
continue;

if (![currentFolder isKindOfClass: [SOGoGCSFolder class]] ||
![currentFolder synchronize])
![(SOGoGCSFolder*)currentFolder synchronize])
{
[folders removeObjectAtIndex: count];
continue;
Expand Down

0 comments on commit e469f52

Please sign in to comment.