]> git.lyx.org Git - features.git/blobdiff - src/lyxfind.C
Convert the spell checking machinery to docstring.
[features.git] / src / lyxfind.C
index 98f30e15d3ae62d39b87d2c5959ebe17133bfba0..93797a61596551b7bd0247479d76d597fdcb38ea 100644 (file)
@@ -218,7 +218,7 @@ bool stringSelected(BufferView * bv, string const & searchstr,
 
 
 int replace(BufferView * bv, string const & searchstr,
-           string const & replacestr, bool cs, bool mw, bool fw)
+           std::string const & replacestr, bool cs, bool mw, bool fw)
 {
        if (!searchAllowed(bv, searchstr) || bv->buffer()->isReadonly())
                return 0;
@@ -227,7 +227,7 @@ int replace(BufferView * bv, string const & searchstr,
                return 0;
 
        LCursor & cur = bv->cursor();
-       cap::replaceSelectionWithString(cur, replacestr, fw);
+       cap::replaceSelectionWithString(cur, from_utf8(replacestr), fw);
        bv->buffer()->markDirty();
        find(bv, searchstr, cs, mw, fw);
        bv->update();