gimp r25080 - in trunk: . app/vectors
- From: mitch svn gnome org
- To: svn-commits-list gnome org
- Subject: gimp r25080 - in trunk: . app/vectors
- Date: Mon, 10 Mar 2008 14:25:48 +0000 (GMT)
Author: mitch
Date: Mon Mar 10 14:25:47 2008
New Revision: 25080
URL: http://svn.gnome.org/viewvc/gimp?rev=25080&view=rev
Log:
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.
Modified:
trunk/ChangeLog
trunk/app/vectors/gimpanchor.c
Modified: trunk/app/vectors/gimpanchor.c
==============================================================================
--- trunk/app/vectors/gimpanchor.c (original)
+++ trunk/app/vectors/gimpanchor.c Mon Mar 10 14:25:47 2008
@@ -58,15 +58,9 @@
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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]