X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Flyxfr1.C;h=ca5e9aa51a0469506b2a6b5fe5fe444fc38eea20;hb=d597ece5e7efac2a25251034d89fa761759d28f7;hp=b2282715aaf694f83db4d2dbbf2ea272ff8e2a31;hpb=6bba977f42b0cde753ac2ffd26f3f9c6b32ba0b6;p=lyx.git diff --git a/src/lyxfr1.C b/src/lyxfr1.C index b2282715aa..ca5e9aa51a 100644 --- a/src/lyxfr1.C +++ b/src/lyxfr1.C @@ -82,7 +82,7 @@ void SetSelectionOverLenChars(BufferView * bv, int len) bv->text->sel_cursor = bv->text->cursor; for (int i = 0; i < len; ++i) bv->text->CursorRight(bv); - bv->text->SetSelection(bv); + bv->text->SetSelection(); } @@ -136,9 +136,9 @@ void LyXFindReplace::SearchReplaceCB() // clear the selection (if there is any) bv->toggleSelection(false); bv->text-> - ReplaceSelectionWithString(bv, replacestring.c_str()); + ReplaceSelectionWithString(bv, replacestring); bv->text-> - SetSelectionOverString(bv, replacestring.c_str()); + SetSelectionOverString(bv, replacestring); bv->update(BufferView::SELECT|BufferView::FITCUR|BufferView::CHANGE); } @@ -179,9 +179,9 @@ void LyXFindReplace::SearchReplaceAllCB() bv->update(BufferView::SELECT|BufferView::FITCUR); bv->toggleSelection(false); bv->text-> - ReplaceSelectionWithString(bv, replacestring.c_str()); + ReplaceSelectionWithString(bv, replacestring); bv->text-> - SetSelectionOverString(bv, replacestring.c_str()); + SetSelectionOverString(bv, replacestring); bv->update(BufferView::SELECT|BufferView::FITCUR|BufferView::CHANGE); ++replace_count; }