]> git.lyx.org Git - lyx.git/blobdiff - src/lyxfr1.C
fix static array
[lyx.git] / src / lyxfr1.C
index b2282715aaf694f83db4d2dbbf2ea272ff8e2a31..ca5e9aa51a0469506b2a6b5fe5fe444fc38eea20 100644 (file)
@@ -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;
                }