avoid using Obj-C 2.0 notation

This commit is contained in:
Doug Simons 2024-05-14 15:40:22 -06:00 committed by GitHub
parent 50f447f5b8
commit 256700d57d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -833,7 +833,7 @@ execute_xpath(xmlNodePtr node, NSString *xpath_exp, NSDictionary *constants,
NSString *message = [NSString stringWithFormat:@"Error: unable to evaluate xpath expression \"%s\" (%d)", xpathExpr, xmlError.code];
*error = [NSError errorWithDomain: @"LibXMLErrorDomain"
code: xmlError.code
userInfo: @{NSLocalizedDescriptionKey:message}];
userInfo: [NSDictionary dictionaryWithObject:message forKey:NSLocalizedDescriptionKey];
}
xmlXPathFreeContext(xpathCtx);
return nil;