diff --git a/include/wx/gtk/private/value.h b/include/wx/gtk/private/value.h index fbf1a08593..0b480b4050 100644 --- a/include/wx/gtk/private/value.h +++ b/include/wx/gtk/private/value.h @@ -18,14 +18,14 @@ class wxGtkValue { public: explicit wxGtkValue() - : m_val(G_VALUE_INIT) { + memset(&m_val, 0, sizeof(m_val)); } // Initialize the value of the specified type. explicit wxGtkValue(GType gtype) - : m_val(G_VALUE_INIT) { + memset(&m_val, 0, sizeof(m_val)); g_value_init(&m_val, gtype); }