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/main.cpp | 2 -- 1 file changed, 2 deletions(-) (limited to 'src/main.cpp') diff --git a/src/main.cpp b/src/main.cpp index d1a3c84..42ebc71 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -187,7 +187,6 @@ main(int argc, char **argv) interface.ssm(SCI_STYLESETFONT, STYLE_DEFAULT, (sptr_t)"Courier"); interface.ssm(SCI_STYLECLEARALL); - QRegisters::globals.initialize(); /* search string and status register */ QRegisters::globals.initialize("_"); /* replacement string register */ @@ -195,7 +194,6 @@ main(int argc, char **argv) /* current buffer name and number ("*") */ QRegisters::globals.insert(new QRegisterBufferInfo()); - local_qregs.initialize(); QRegisters::locals = &local_qregs; ring.edit((const gchar *)NULL); -- cgit v1.2.3