[gimp] app: minor cleanup in gimpguide.c
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] app: minor cleanup in gimpguide.c
- Date: Sun, 15 Jul 2018 20:27:41 +0000 (UTC)
commit 827faa2a254a4c16dcac9c046467011a916615ac
Author: Michael Natterer <mitch gimp org>
Date: Sun Jul 15 22:25:03 2018 +0200
app: minor cleanup in gimpguide.c
app/core/gimpguide.c | 14 +++++---------
1 file changed, 5 insertions(+), 9 deletions(-)
---
diff --git a/app/core/gimpguide.c b/app/core/gimpguide.c
index 9327a436f2..87da7f7f74 100644
--- a/app/core/gimpguide.c
+++ b/app/core/gimpguide.c
@@ -183,15 +183,11 @@ gimp_guide_custom_new (GimpOrientationType orientation,
guint32 guide_ID,
GimpGuideStyle guide_style)
{
- GimpGuide *guide;
-
- guide = g_object_new (GIMP_TYPE_GUIDE,
- "id", guide_ID,
- "orientation", orientation,
- "style", guide_style,
- NULL);
-
- return guide;
+ return g_object_new (GIMP_TYPE_GUIDE,
+ "id", guide_ID,
+ "orientation", orientation,
+ "style", guide_style,
+ NULL);
}
GimpOrientationType
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]