pkgsrc/databases/mysql-workbench/patches/patch-library_forms_mforms.cpp
joerg 8775065959 static const objects must have default constructors, so don't use const
here. Don't use extern inside functions when the declared function is
not in the same namespace.
2012-12-25 21:12:31 +00:00

21 lines
652 B
C++

$NetBSD: patch-library_forms_mforms.cpp,v 1.1 2012/12/25 21:12:31 joerg Exp $
--- library/forms/mforms.cpp.orig 2012-12-25 15:55:34.000000000 +0000
+++ library/forms/mforms.cpp
@@ -23,6 +23,8 @@
#include "mforms/mforms.h"
#include "mforms/simpleform.h"
+extern GThread *_mforms_main_thread;
+
using namespace mforms;
// The first time this method is called must be from the main thread, during
@@ -33,7 +35,6 @@ ControlFactory *ControlFactory::get_inst
if (!instance)
{
// Do some one time initializations.
- extern GThread *_mforms_main_thread;
_mforms_main_thread= g_thread_self();
instance= new ControlFactory();