Skip to content

Commit 36bf816

Browse files
committed
fix NSXMLParser for SE-0110
1 parent c889cd3 commit 36bf816

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Foundation/NSXMLParser.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -640,16 +640,16 @@ public class XMLParser : NSObject {
640640
_namespaces.append(ns)
641641
if let del = self.delegate {
642642
ns.forEach {
643-
del.parser(self, didStartMappingPrefix: $0.0, toURI: $0.1)
643+
del.parser(self, didStartMappingPrefix: $0, toURI: $1)
644644
}
645645
}
646646
}
647647

648648
internal func _popNamespaces() {
649649
let ns = _namespaces.removeLast()
650650
if let del = self.delegate {
651-
ns.forEach {
652-
del.parser(self, didEndMappingPrefix: $0.0)
651+
ns.forEach { prefix, _ in
652+
del.parser(self, didEndMappingPrefix: prefix)
653653
}
654654
}
655655
}

0 commit comments

Comments
 (0)