From 38fcf6d15cdf09591e7d7a142ad724164875e433 Mon Sep 17 00:00:00 2001 From: Robin Haberkorn Date: Sun, 16 Nov 2014 19:31:29 +0100 Subject: rewritten View and Interface base classes using the Curiously Recurring Template Pattern. * without the one-view-per-buffer designs, many Scintilla send message (SSM) calls could be inlined * with the new design, this was no longer possible using the abstract base classes. the CRT pattern allows inlining again but introduces a strange level of code obscurity. * tests suggest that at high optimization levels, the one-view-per-buffer design and the CRT pattern reduces typical macro runtimes by 30% (e.g. for symbols-extract.tes). * only updated the NCurses UI for the time being --- src/search.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/search.cpp') diff --git a/src/search.cpp b/src/search.cpp index 16706ee..77a563a 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -526,7 +526,7 @@ StateSearch::done(const gchar *str) expressions.push(search_reg->get_integer()); else if (IS_FAILURE(search_reg->get_integer()) && !expressions.find_op(Expressions::OP_LOOP) /* not in loop */) - interface.msg(Interface::MSG_ERROR, "Search string not found!"); + interface.msg(InterfaceCurrent::MSG_ERROR, "Search string not found!"); return &States::start; } -- cgit v1.2.3