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