mirror of
https://github.com/gnustep/libs-gdl2.git
synced 2025-02-22 19:01:04 +00:00
* 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:
parent
0fd5ef9822
commit
1b24b40493
2 changed files with 12 additions and 6 deletions
|
@ -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>
|
David Ayers <d.ayers@inode.at>
|
||||||
|
|
||||||
* config.h.in (HAVE_DECL_PQFREEMEM, HAVE_DECL_PQUNESCAPEBYTEA):
|
* config.h.in (HAVE_DECL_PQFREEMEM, HAVE_DECL_PQUNESCAPEBYTEA):
|
||||||
|
|
|
@ -1882,7 +1882,7 @@ createInstanceWithEditingContext:globalID:zone:
|
||||||
self,
|
self,
|
||||||
name];
|
name];
|
||||||
|
|
||||||
ASSIGN(_name, name);
|
ASSIGNCOPY(_name, name);
|
||||||
[_model _updateCache];
|
[_model _updateCache];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1893,7 +1893,7 @@ createInstanceWithEditingContext:globalID:zone:
|
||||||
self, [self name], name);
|
self, [self name], name);
|
||||||
|
|
||||||
[self willChange];
|
[self willChange];
|
||||||
ASSIGN(_externalName,name);
|
ASSIGNCOPY(_externalName,name);
|
||||||
[self _setIsEdited];
|
[self _setIsEdited];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1901,7 +1901,7 @@ createInstanceWithEditingContext:globalID:zone:
|
||||||
{
|
{
|
||||||
//OK
|
//OK
|
||||||
[self willChange];
|
[self willChange];
|
||||||
ASSIGN(_externalQuery, query);
|
ASSIGNCOPY(_externalQuery, query);
|
||||||
[self _setIsEdited];
|
[self _setIsEdited];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2095,7 +2095,7 @@ createInstanceWithEditingContext:globalID:zone:
|
||||||
NSLog(@"Entity %@ has no class name. Use EOGenericRecord", [self name]);
|
NSLog(@"Entity %@ has no class name. Use EOGenericRecord", [self name]);
|
||||||
name = @"EOGenericRecord";
|
name = @"EOGenericRecord";
|
||||||
}
|
}
|
||||||
ASSIGN(_className, name);
|
ASSIGNCOPY(_className, name);
|
||||||
|
|
||||||
[self _setIsEdited];
|
[self _setIsEdited];
|
||||||
}
|
}
|
||||||
|
@ -2353,7 +2353,7 @@ createInstanceWithEditingContext:globalID:zone:
|
||||||
{
|
{
|
||||||
//OK
|
//OK
|
||||||
[self willChange];
|
[self willChange];
|
||||||
ASSIGN(_docComment, docComment);
|
ASSIGNCOPY(_docComment, docComment);
|
||||||
[self _setIsEdited];
|
[self _setIsEdited];
|
||||||
}
|
}
|
||||||
@end
|
@end
|
||||||
|
|
Loading…
Reference in a new issue