+2001-03-06 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
+
+ * lyxfind.C (LyXReplace): do not redefine default argument in
+ implementation.
+ (IsStringInText): ditto
+ (SearchForward): ditto
+ (SearchBackward): ditto
+
2001-03-06 Juergen Vigna <jug@sad.it>
* lyxfind.C (IsStringInText): put parentes around expressions.
return 0;
}
-void FormSearch::Find(bool const next = true)
+void FormSearch::Find(bool const next)
{
bool found = LyXFind(lv_->view(),
fl_get_input(dialog_->input_search),
if (!found)
setMinibuffer(lv_, _("String not found!"));
- };
+}
-void FormSearch::Replace(bool const all = false)
+void FormSearch::Replace(bool const all)
{
int replace_count = LyXReplace(lv_->view(),
fl_get_input(dialog_->input_search),
setMinibuffer(lv_, str.c_str());
}
}
-};
+}
bool const & casesens,
bool const & matchwrd,
bool const & forward,
- bool const & replaceall=false)
+ bool const & replaceall)
{
int replace_count = 0;
// returns true if the specified string is at the specified position
bool IsStringInText(LyXParagraph * par, LyXParagraph::size_type pos,
- string const & str, bool const & cs = true,
- bool const & mw = false)
+ string const & str, bool const & cs,
+ bool const & mw)
{
if (!par)
return false;
// if the string can be found: return true and set the cursor to
// the new position, cs = casesensitive, mw = matchword
bool SearchForward(BufferView * bv, string const & str,
- bool const & cs = true, bool const & mw = false)
+ bool const & cs, bool const & mw)
{
LyXParagraph * par = bv->text->cursor.par();
LyXParagraph::size_type pos = bv->text->cursor.pos();
// if the string can be found: return true and set the cursor to
// the new position, cs = casesensitive, mw = matchword
bool SearchBackward(BufferView * bv, string const & str,
- bool const & cs = true, bool const & mw = false)
+ bool const & cs, bool const & mw)
{
LyXParagraph * par = bv->text->cursor.par();
LyXParagraph::size_type pos = bv->text->cursor.pos();