mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-12 17:11:12 +00:00
(shallowCopyAs:, emptyCopyAs:, copyAs:): Change arg type to (Class).
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@171 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
b54be3885e
commit
450d5226fd
3 changed files with 8 additions and 8 deletions
|
@ -112,11 +112,11 @@
|
||||||
|
|
||||||
// COPYING
|
// COPYING
|
||||||
- emptyCopy;
|
- emptyCopy;
|
||||||
- emptyCopyAs: (id <Collecting>)aCollectionClass;
|
- emptyCopyAs: (Class)aCollectionClass;
|
||||||
- shallowCopy;
|
- shallowCopy;
|
||||||
- shallowCopyAs: (id <Collecting>)aCollectionClass;
|
- shallowCopyAs: (Class)aCollectionClass;
|
||||||
- copy;
|
- copy;
|
||||||
- copyAs: (id <Collecting>)aCollectionClass;
|
- copyAs: (Class)aCollectionClass;
|
||||||
- species;
|
- species;
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -218,7 +218,7 @@
|
||||||
|
|
||||||
// COPYING;
|
// COPYING;
|
||||||
|
|
||||||
- shallowCopyAs: (id <Collecting>)aCollectionClass
|
- shallowCopyAs: (Class)aCollectionClass
|
||||||
{
|
{
|
||||||
id (*putElementAtKeyImp)(id,SEL,elt,elt);
|
id (*putElementAtKeyImp)(id,SEL,elt,elt);
|
||||||
id newColl;
|
id newColl;
|
||||||
|
@ -229,7 +229,7 @@
|
||||||
content, key);
|
content, key);
|
||||||
}
|
}
|
||||||
|
|
||||||
if ([aCollectionClass conformsToProtocol:@protocol(KeyedCollecting)])
|
if ([(id)aCollectionClass conformsToProtocol:@protocol(KeyedCollecting)])
|
||||||
{
|
{
|
||||||
newColl = [self emptyCopyAs:aCollectionClass];
|
newColl = [self emptyCopyAs:aCollectionClass];
|
||||||
putElementAtKeyImp = (id(*)(id,SEL,elt,elt))
|
putElementAtKeyImp = (id(*)(id,SEL,elt,elt))
|
||||||
|
|
|
@ -112,11 +112,11 @@
|
||||||
|
|
||||||
// COPYING
|
// COPYING
|
||||||
- emptyCopy;
|
- emptyCopy;
|
||||||
- emptyCopyAs: (id <Collecting>)aCollectionClass;
|
- emptyCopyAs: (Class)aCollectionClass;
|
||||||
- shallowCopy;
|
- shallowCopy;
|
||||||
- shallowCopyAs: (id <Collecting>)aCollectionClass;
|
- shallowCopyAs: (Class)aCollectionClass;
|
||||||
- copy;
|
- copy;
|
||||||
- copyAs: (id <Collecting>)aCollectionClass;
|
- copyAs: (Class)aCollectionClass;
|
||||||
- species;
|
- species;
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue