From 9dd2447d42fd6c822139f3cd1fd2cd284346e5e8 Mon Sep 17 00:00:00 2001 From: Robin Haberkorn Date: Fri, 1 Feb 2013 19:34:23 +0100 Subject: fixed buffer Ring initialization * there was a dependency on interface initialization. it did not cause issues because destruction order was by chance. * introduced INIT_PRIO and PRIO_* macros to easy initialization order declaration (using a PRIO_* formula makes code self-documenting) * also used this to clean up QRegisterTable initialization (we do not need the explicit initialize() method) * also used to clean up symbols initialization --- src/interface-gtk.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/interface-gtk.cpp') diff --git a/src/interface-gtk.cpp b/src/interface-gtk.cpp index c1a557a..d1d20cd 100644 --- a/src/interface-gtk.cpp +++ b/src/interface-gtk.cpp @@ -41,7 +41,7 @@ #include "interface.h" #include "interface-gtk.h" -InterfaceGtk interface; +InterfaceGtk interface INIT_PRIO(PRIO_INTERFACE); extern "C" { static void scintilla_notify(ScintillaObject *sci, uptr_t idFrom, -- cgit v1.2.3