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:
Michael Natterer 2008-03-29 22:08:15 +00:00 committed by Michael Natterer
parent 443047f89c
commit 943a0ebafd
2 changed files with 7 additions and 2 deletions

View file

@ -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.

View file

@ -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)
{