Per design discussion today, rename UnsafePointer ".pointee" to ".memory".

Swift SVN r18269
This commit is contained in:
Ted Kremenek
2014-05-17 20:35:16 +00:00
parent 0d5b40a0e8
commit eab7f90a81
22 changed files with 54 additions and 54 deletions

View File

@@ -80,7 +80,7 @@ class _NSSwiftArray : HeapBufferStorageBase, CocoaArray {
state: UnsafePointer<_SwiftNSFastEnumerationState>,
objects: UnsafePointer<AnyObject>, count bufferSize: Int
) -> Int {
var enumerationState = state.pointee
var enumerationState = state.memory
let buffer = reinterpretCast(self) as Buffer
// If used as an NSArray, the element type can have no fancy
@@ -93,7 +93,7 @@ class _NSSwiftArray : HeapBufferStorageBase, CocoaArray {
enumerationState.mutationsPtr = _fastEnumerationStorageMutationsPtr
enumerationState.itemsPtr = reinterpretCast(buffer.elementStorage)
enumerationState.state = 1
state.pointee = enumerationState
state.memory = enumerationState
return buffer.value.count
}