From: Jean-Marc Lasgouttes Date: Tue, 9 Feb 2010 14:26:59 +0000 (+0000) Subject: do not use theLyXFunc() X-Git-Tag: 2.0.0~4105 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=668d0f8c3f8e8179dff2c61ad8f92dde1f5f8b71;p=lyx.git do not use theLyXFunc() git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33385 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/BufferView.cpp b/src/BufferView.cpp index d567f6b7dc..c9fb198eb0 100644 --- a/src/BufferView.cpp +++ b/src/BufferView.cpp @@ -1341,9 +1341,9 @@ void BufferView::dispatch(FuncRequest const & cmd, DispatchResult & dr) dr.update(Update::Force | Update::FitCursor); } else { // Switch to other buffer view and resend cmd - theLyXFunc().dispatch(FuncRequest( + lyx::dispatch(FuncRequest( LFUN_BUFFER_SWITCH, b->absFileName())); - theLyXFunc().dispatch(cmd); + lyx::dispatch(cmd); } break; } @@ -1458,7 +1458,7 @@ void BufferView::dispatch(FuncRequest const & cmd, DispatchResult & dr) if (cmd.argument().empty() && !d->search_request_cache_.argument().empty()) req = d->search_request_cache_; if (req.argument().empty()) { - theLyXFunc().dispatch(FuncRequest(LFUN_DIALOG_SHOW, "findreplace")); + lyx::dispatch(FuncRequest(LFUN_DIALOG_SHOW, "findreplace")); break; } if (find(this, req))