]> git.lyx.org Git - lyx.git/commitdiff
do not use theLyXFunc()
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Tue, 9 Feb 2010 14:26:59 +0000 (14:26 +0000)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Tue, 9 Feb 2010 14:26:59 +0000 (14:26 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33385 a592a061-630c-0410-9148-cb99ea01b6c8

src/BufferView.cpp

index d567f6b7dc087f3d47abd3a0b5b5e91238a92d28..c9fb198eb04e61f1a671939bd4f0e3501cd8284b 100644 (file)
@@ -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))