mirror of
https://gitlab.gnome.org/GNOME/gimp
synced 2024-10-22 04:22:29 +00:00
remove temporary "object" variable, it's prefectly fine to say
2008-03-29 Michael Natterer <mitch@gimp.org> * app/gui/gui-vtable.c (gui_display_create): remove temporary "object" variable, it's prefectly fine to say GIMP_DISPLAY() on a NULL pointer. svn path=/trunk/; revision=25305
This commit is contained in:
parent
443047f89c
commit
943a0ebafd
|
@ -1,3 +1,9 @@
|
|||
2008-03-29 Michael Natterer <mitch@gimp.org>
|
||||
|
||||
* app/gui/gui-vtable.c (gui_display_create): remove temporary
|
||||
"object" variable, it's prefectly fine to say GIMP_DISPLAY() on a
|
||||
NULL pointer.
|
||||
|
||||
2008-03-29 Michael Natterer <mitch@gimp.org>
|
||||
|
||||
* configure.in: add -Wold-style-definition to CFLAGS.
|
||||
|
|
|
@ -326,8 +326,7 @@ gui_display_create (Gimp *gimp,
|
|||
gdouble scale)
|
||||
{
|
||||
GimpContext *context = gimp_get_user_context (gimp);
|
||||
GimpObject *object = gui_get_empty_display (gimp);
|
||||
GimpDisplay *display = object ? GIMP_DISPLAY (object) : NULL;
|
||||
GimpDisplay *display = GIMP_DISPLAY (gui_get_empty_display (gimp));
|
||||
|
||||
if (display)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue