[gimp] app: minor cleanup in gimpguide.c



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]