mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 21:21:32 +00:00
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
This commit is contained in:
parent
77a9dfcdba
commit
9511e345c1
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user