QGtkStyle: fix a warning
authorMarc Mutz <marc.mutz@kdab.com>
Thu, 11 Oct 2012 17:04:57 +0000 (19:04 +0200)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Sat, 13 Oct 2012 03:51:19 +0000 (05:51 +0200)
commit8229841a4e1023cd87591a26761f247efec8b2a2
treea6d4081a38bdfb3f13eff502fb1f62e664eef431
parent3d466cbcbb37a00c94e233830d90bacd4ce2aac8
QGtkStyle: fix a warning

Commit c0893962ef94f12594f936ef2a50db6d0328eca0 added two
definitions of a variable named gtkToggleButtonStyle in nested
scopes. Because of name lookup rules, the second one wasn't
initialised with the first one, but with itself.

This leaves the second gtkToggleButtonStyle uninit'ed.

Simply remove the surplus declaration, leaving the name to
the original declaration.

Change-Id: I2269e1093f54643ff4dce27b39cc033db6697782
Reviewed-by: J-P Nurmi <jpnurmi@digia.com>
src/widgets/styles/qgtkstyle.cpp