* EOAccess/EOEntity.m (-[setName:],-[setExternalName:])

(-[setExternalQuery:],-[setClassName:],-[setDocComment]): Use
        ASSIGNCOPY instead of ASSIGN to deal with mutable strings.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@20121 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
David Ayers 2004-09-24 10:02:05 +00:00
parent 0fd5ef9822
commit 1b24b40493
2 changed files with 12 additions and 6 deletions

View file

@ -1,4 +1,10 @@
2004-05-07 Simon Stapleton <simon@tufty.co.uk>
2004-09-24 David Ayers <d.ayers@inode.at>
* EOAccess/EOEntity.m (-[setName:],-[setExternalName:])
(-[setExternalQuery:],-[setClassName:],-[setDocComment]): Use
ASSIGNCOPY instead of ASSIGN to deal with mutable strings.
2004-09-09 Simon Stapleton <simon@tufty.co.uk>
David Ayers <d.ayers@inode.at>
* config.h.in (HAVE_DECL_PQFREEMEM, HAVE_DECL_PQUNESCAPEBYTEA):

View file

@ -1882,7 +1882,7 @@ createInstanceWithEditingContext:globalID:zone:
self,
name];
ASSIGN(_name, name);
ASSIGNCOPY(_name, name);
[_model _updateCache];
}
@ -1893,7 +1893,7 @@ createInstanceWithEditingContext:globalID:zone:
self, [self name], name);
[self willChange];
ASSIGN(_externalName,name);
ASSIGNCOPY(_externalName,name);
[self _setIsEdited];
}
@ -1901,7 +1901,7 @@ createInstanceWithEditingContext:globalID:zone:
{
//OK
[self willChange];
ASSIGN(_externalQuery, query);
ASSIGNCOPY(_externalQuery, query);
[self _setIsEdited];
}
@ -2095,7 +2095,7 @@ createInstanceWithEditingContext:globalID:zone:
NSLog(@"Entity %@ has no class name. Use EOGenericRecord", [self name]);
name = @"EOGenericRecord";
}
ASSIGN(_className, name);
ASSIGNCOPY(_className, name);
[self _setIsEdited];
}
@ -2353,7 +2353,7 @@ createInstanceWithEditingContext:globalID:zone:
{
//OK
[self willChange];
ASSIGN(_docComment, docComment);
ASSIGNCOPY(_docComment, docComment);
[self _setIsEdited];
}
@end