From 9511e345c14d73dec56abf4bccb8c9d3c64778fa Mon Sep 17 00:00:00 2001 From: Richard Heck Date: Wed, 13 Oct 2010 18:27:40 +0000 Subject: [PATCH] Why have an argument in an anonymous method if you aren't going to use it? git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35637 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/lyxfind.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/lyxfind.cpp b/src/lyxfind.cpp index a36b720893..3b5bb81e4e 100644 --- a/src/lyxfind.cpp +++ b/src/lyxfind.cpp @@ -132,7 +132,7 @@ bool findChange(DocIterator & cur, bool next) } -bool searchAllowed(BufferView * /*bv*/, docstring const & str) +bool searchAllowed(docstring const & str) { if (str.empty()) { frontend::Alert::error(_("Search error"), _("Search string is empty")); @@ -145,7 +145,7 @@ bool searchAllowed(BufferView * /*bv*/, docstring const & str) bool findOne(BufferView * bv, docstring const & searchstr, bool case_sens, bool whole, bool forward, bool find_del = true) { - if (!searchAllowed(bv, searchstr)) + if (!searchAllowed(searchstr)) return false; DocIterator cur = bv->cursor(); @@ -168,7 +168,7 @@ int replaceAll(BufferView * bv, { Buffer & buf = bv->buffer(); - if (!searchAllowed(bv, searchstr) || buf.isReadonly()) + if (!searchAllowed(searchstr) || buf.isReadonly()) return 0; DocIterator cur_orig(bv->cursor()); @@ -240,7 +240,7 @@ int replaceOne(BufferView * bv, docstring & searchstr, if (!stringSelected(bv, searchstr, case_sens, whole, forward)) return 0; - if (!searchAllowed(bv, searchstr) || bv->buffer().isReadonly()) + if (!searchAllowed(searchstr) || bv->buffer().isReadonly()) return 0; Cursor & cur = bv->cursor(); -- 2.39.5