Skip to content

Commit

Permalink
Fix Build Warnings in Xcode7.3b4 (for Swift 2.2 changes)
Browse files Browse the repository at this point in the history
  • Loading branch information
meteochu committed Feb 24, 2016
1 parent f8c1ece commit a2f88ee
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions Swifter/Dictionary+Swifter.swift
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,9 @@ extension Dictionary {
}

func stringifiedDictionary() -> Dictionary<String, String> {
let dict = self.reduce([String: String]()) { (var dict, tuple) in
dict["\(tuple.0)"] = "\(tuple.1)"
return dict
var dict = [String: String]()
for (key, value) in self {
dict[String(key)] = String(value)
}
return dict
}
Expand Down
4 changes: 2 additions & 2 deletions Swifter/SwifterOAuthClient.swift
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,9 @@ internal class SwifterOAuthClient: SwifterClientProtocol {
return request
}

func post(path: String, baseURL: NSURL, var parameters: Dictionary<String, Any>, uploadProgress: SwifterHTTPRequest.UploadProgressHandler?, downloadProgress: SwifterHTTPRequest.DownloadProgressHandler?, success: SwifterHTTPRequest.SuccessHandler?, failure: SwifterHTTPRequest.FailureHandler?) -> SwifterHTTPRequest {
func post(path: String, baseURL: NSURL, parameters: Dictionary<String, Any>, uploadProgress: SwifterHTTPRequest.UploadProgressHandler?, downloadProgress: SwifterHTTPRequest.DownloadProgressHandler?, success: SwifterHTTPRequest.SuccessHandler?, failure: SwifterHTTPRequest.FailureHandler?) -> SwifterHTTPRequest {
let url = NSURL(string: path, relativeToURL: baseURL)!

var parameters = parameters
var postData: NSData?
var postDataKey: String?

Expand Down

0 comments on commit a2f88ee

Please sign in to comment.