summaryrefslogtreecommitdiff
path: root/swift/src
diff options
context:
space:
mode:
Diffstat (limited to 'swift/src')
-rw-r--r--swift/src/Ice/CommunicatorI.swift2
-rw-r--r--swift/src/Ice/Globals.swift2
2 files changed, 2 insertions, 2 deletions
diff --git a/swift/src/Ice/CommunicatorI.swift b/swift/src/Ice/CommunicatorI.swift
index 77ac29668cc..e7b46c03c5a 100644
--- a/swift/src/Ice/CommunicatorI.swift
+++ b/swift/src/Ice/CommunicatorI.swift
@@ -81,7 +81,7 @@ class CommunicatorI: LocalObject<ICECommunicator>, Communicator {
}
func stringToIdentity(_ str: String) throws -> Identity {
- return try Ice.stringToIdentity(string: str)
+ return try Ice.stringToIdentity(str)
}
func identityToString(_ ident: Identity) throws -> String {
diff --git a/swift/src/Ice/Globals.swift b/swift/src/Ice/Globals.swift
index eb3fda2d493..08ffbf4f824 100644
--- a/swift/src/Ice/Globals.swift
+++ b/swift/src/Ice/Globals.swift
@@ -71,7 +71,7 @@ public var currentEncoding: EncodingVersion {
return encoding
}
-public func stringToIdentity(string: String) throws -> Identity {
+public func stringToIdentity(_ string: String) throws -> Identity {
var name = NSString()
var category = NSString()
try ICEUtil.stringToIdentity(str: string, name: &name, category: &category)