mirror of
https://gitlab.gnome.org/GNOME/gimp
synced 2024-10-22 04:22:29 +00:00
use g_slice_dup() instead of copying the struct contents manually.
2008-03-10 Michael Natterer <mitch@gimp.org> * app/vectors/gimpanchor.c (gimp_anchor_copy): use g_slice_dup() instead of copying the struct contents manually. svn path=/trunk/; revision=25080
This commit is contained in:
parent
a58fccea90
commit
cffce40876
|
@ -1,3 +1,8 @@
|
|||
2008-03-10 Michael Natterer <mitch@gimp.org>
|
||||
|
||||
* app/vectors/gimpanchor.c (gimp_anchor_copy): use g_slice_dup()
|
||||
instead of copying the struct contents manually.
|
||||
|
||||
2008-03-09 Michael Natterer <mitch@gimp.org>
|
||||
|
||||
Fix mishandling of the "antialias" GParamSpec. Fixes bug #521069:
|
||||
|
|
|
@ -58,15 +58,9 @@ gimp_anchor_new (GimpAnchorType type,
|
|||
GimpAnchor *
|
||||
gimp_anchor_copy (const GimpAnchor *anchor)
|
||||
{
|
||||
GimpAnchor *new;
|
||||
|
||||
g_return_val_if_fail (anchor != NULL, NULL);
|
||||
|
||||
new = g_slice_new (GimpAnchor);
|
||||
|
||||
*new = *anchor;
|
||||
|
||||
return new;
|
||||
return g_slice_dup (GimpAnchor, anchor);
|
||||
}
|
||||
|
||||
void
|
||||
|
|
Loading…
Reference in a new issue