mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-11-22 07:14:21 +00:00
Fixed most build warnings
This commit is contained in:
1 parent
dac021799a
commit
6d8c328910
56 files changed
+238
-210
No files matched your search
@@ -1041,12 +1041,12 @@ static NSArray *childRecordFields = nil;
|
||||
return davSQLFields;
|
||||
}
|
||||
|
||||
- (NSDictionary *) parseDAVRequestedProperties: (DOMElement *) propElement
|
||||
- (NSDictionary *) parseDAVRequestedProperties: (id <DOMElement>) propElement
|
||||
{
|
||||
NSArray *properties;
|
||||
NSDictionary *sqlFieldsTable;
|
||||
|
||||
properties = [propElement flatPropertyNameOfSubElements];
|
||||
properties = [(NGDOMNodeWithChildren *) propElement flatPropertyNameOfSubElements];
|
||||
sqlFieldsTable = [self _davSQLFieldsForProperties: properties];
|
||||
|
||||
return sqlFieldsTable;
|
||||
@@ -1331,7 +1331,7 @@ static NSArray *childRecordFields = nil;
|
||||
{
|
||||
WOResponse *r;
|
||||
id <DOMDocument> document;
|
||||
DOMElement *documentElement, *propElement;
|
||||
id <DOMElement> documentElement, propElement;
|
||||
NSString *syncToken;
|
||||
NSDictionary *properties;
|
||||
NSArray *records;
|
||||
@@ -1340,13 +1340,16 @@ static NSArray *childRecordFields = nil;
|
||||
[r prepareDAVResponse];
|
||||
|
||||
document = [[context request] contentAsDOMDocument];
|
||||
documentElement = (DOMElement *) [document documentElement];
|
||||
syncToken = [[documentElement firstElementWithTag: @"sync-token"
|
||||
inNamespace: XMLNS_WEBDAV] textValue];
|
||||
documentElement = [document documentElement];
|
||||
syncToken = [(NGDOMNode *)
|
||||
[(NGDOMNodeWithChildren *)
|
||||
documentElement firstElementWithTag: @"sync-token"
|
||||
inNamespace: XMLNS_WEBDAV]
|
||||
textValue];
|
||||
if ([self _isValidSyncToken: syncToken])
|
||||
{
|
||||
propElement = [documentElement firstElementWithTag: @"prop"
|
||||
inNamespace: XMLNS_WEBDAV];
|
||||
propElement = [(NGDOMNodeWithChildren *) documentElement
|
||||
firstElementWithTag: @"prop" inNamespace: XMLNS_WEBDAV];
|
||||
properties = [self parseDAVRequestedProperties: propElement];
|
||||
records = [self _fetchSyncTokenFields: properties
|
||||
matchingSyncToken: syncToken];
|
||||
@@ -2089,7 +2092,7 @@ static NSArray *childRecordFields = nil;
|
||||
{
|
||||
WOResponse *r;
|
||||
id <DOMDocument> document;
|
||||
DOMElement *documentElement, *propElement;
|
||||
id <DOMElement> documentElement, propElement;
|
||||
|
||||
r = [context response];
|
||||
[r prepareDAVResponse];
|
||||
@@ -2097,9 +2100,10 @@ static NSArray *childRecordFields = nil;
|
||||
[NSString stringWithFormat: @"<D:multistatus xmlns:D=\"DAV:\""
|
||||
@" xmlns:C=\"%@\">", namespace]];
|
||||
document = [[queryContext request] contentAsDOMDocument];
|
||||
documentElement = (DOMElement *) [document documentElement];
|
||||
propElement = [documentElement firstElementWithTag: @"prop"
|
||||
inNamespace: @"DAV:"];
|
||||
documentElement = [document documentElement];
|
||||
propElement = [(NGDOMNodeWithChildren *)
|
||||
documentElement firstElementWithTag: @"prop"
|
||||
inNamespace: @"DAV:"];
|
||||
[self _appendComponentProperties: [self parseDAVRequestedProperties: propElement]
|
||||
matchingURLs: [documentElement getElementsByTagName: @"href"]
|
||||
toResponse: r];
|
||||
|
||||
Reference in new issue
Block a user