Unsafe[Mutable]Pointer.memory => .pointee

This commit is contained in:
Dmitri Gribenko
2015-11-05 15:45:35 -08:00
committed by Max Moiseev
parent f1dbe205a3
commit 3d0ad16094
44 changed files with 134 additions and 135 deletions

View File

@@ -139,8 +139,8 @@ extension String {
public static func availableStringEncodings() -> [NSStringEncoding] {
var result = [NSStringEncoding]()
var p = NSString.availableStringEncodings()
while p.memory != 0 {
result.append(p.memory)
while p.pointee != 0 {
result.append(p.pointee)
++p
}
return result
@@ -486,7 +486,7 @@ extension String {
var stop_ = false
body(line: line, stop: &stop_)
if stop_ {
UnsafeMutablePointer<ObjCBool>(stop).memory = true
UnsafeMutablePointer<ObjCBool>(stop).pointee = true
}
}
}
@@ -522,7 +522,7 @@ extension String {
var stop_ = false
body($0, self._range($1), self._range($2), &stop_)
if stop_ {
UnsafeMutablePointer($3).memory = true
UnsafeMutablePointer($3).pointee = true
}
}
}
@@ -557,7 +557,7 @@ extension String {
&stop_)
if stop_ {
UnsafeMutablePointer($3).memory = true
UnsafeMutablePointer($3).pointee = true
}
}
}