Do not declare GTypeInfo instances static. This is completely unnecessary and just causes unnecessary extra relocations and global stack memory usage

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44423 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Mart Raudsepp
2007-02-08 16:12:06 +00:00
parent 58261d9a7a
commit de4a74e2d0
6 changed files with 7 additions and 7 deletions

View File

@@ -248,7 +248,7 @@ GtkType gtk_assert_dialog_get_type (void)
if (!assert_dialog_type) if (!assert_dialog_type)
{ {
static const GTypeInfo assert_dialog_info = const GTypeInfo assert_dialog_info =
{ {
sizeof (GtkAssertDialogClass), sizeof (GtkAssertDialogClass),
NULL, /* base_init */ NULL, /* base_init */

View File

@@ -125,7 +125,7 @@ gtk_wx_list_store_get_type (void)
if (!list_store_type) if (!list_store_type)
{ {
static const GTypeInfo list_store_info = const GTypeInfo list_store_info =
{ {
sizeof (GtkWxListStoreClass), sizeof (GtkWxListStoreClass),
NULL, /* base_init */ NULL, /* base_init */
@@ -492,7 +492,7 @@ gtk_wx_cell_renderer_get_type (void)
if (!cell_wx_type) if (!cell_wx_type)
{ {
static const GTypeInfo cell_wx_info = const GTypeInfo cell_wx_info =
{ {
sizeof (GtkWxCellRendererClass), sizeof (GtkWxCellRendererClass),
NULL, /* base_init */ NULL, /* base_init */

View File

@@ -135,7 +135,7 @@ egg_tray_icon_get_type (void)
if (our_type == 0) if (our_type == 0)
{ {
static const GTypeInfo our_info = const GTypeInfo our_info =
{ {
sizeof (EggTrayIconClass), sizeof (EggTrayIconClass),
(GBaseInitFunc) NULL, (GBaseInitFunc) NULL,

View File

@@ -46,7 +46,7 @@ gtk_tree_entry_get_type ()
if (!tree_entry_type) if (!tree_entry_type)
{ {
static const GTypeInfo tree_entry_info = const GTypeInfo tree_entry_info =
{ {
sizeof (GtkTreeEntryClass), sizeof (GtkTreeEntryClass),
NULL, /* base_init */ NULL, /* base_init */

View File

@@ -89,7 +89,7 @@ gtk_pizza_get_type ()
if (!pizza_type) if (!pizza_type)
{ {
static const GTypeInfo pizza_info = const GTypeInfo pizza_info =
{ {
sizeof (GtkPizzaClass), sizeof (GtkPizzaClass),
NULL, /* base_init */ NULL, /* base_init */

View File

@@ -135,7 +135,7 @@ egg_tray_icon_get_type (void)
if (our_type == 0) if (our_type == 0)
{ {
static const GTypeInfo our_info = const GTypeInfo our_info =
{ {
sizeof (EggTrayIconClass), sizeof (EggTrayIconClass),
(GBaseInitFunc) NULL, (GBaseInitFunc) NULL,