Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
norio-nomura committed May 12, 2017
1 parent 51740ba commit f15f96b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Source/SWXMLHash.swift
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ class LazyXMLParser: NSObject, SimpleXmlParser, XMLParserDelegate {
}
#if os(Linux)
let attributeNSDict = NSDictionary(
objects: attributeDict.values.flatMap({ $0 as? AnyObject }),
objects: attributeDict.values.flatMap({ NSString(string: $0) }),
forKeys: attributeDict.keys.map({ NSString(string: $0) as NSObject })
)
let currentNode = parentStack.top().addElement(elementName, withAttributes: attributeNSDict)
Expand Down Expand Up @@ -362,7 +362,7 @@ class FullXMLParser: NSObject, SimpleXmlParser, XMLParserDelegate {
attributes attributeDict: [String: String]) {
#if os(Linux)
let attributeNSDict = NSDictionary(
objects: attributeDict.values.flatMap({ $0 as? AnyObject }),
objects: attributeDict.values.flatMap({ NSString(string: $0) }),
forKeys: attributeDict.keys.map({ NSString(string: $0) as NSObject })
)
let currentNode = parentStack.top().addElement(elementName, withAttributes: attributeNSDict)
Expand Down

0 comments on commit f15f96b

Please sign in to comment.