#include "frontends/Alert.h"
#include "frontends/LyXView.h"
-#include "support/tostr.h"
+#include "support/convert.h"
#include <sstream>
if (pos > 0 && par.isLetter(pos - 1))
return false;
if (pos + lyx::pos_type(size) < parsize
- && par.isLetter(pos + size));
+ && par.isLetter(pos + size))
return false;
}
if (!searchAllowed(bv, searchstr) || buf.isReadonly())
return 0;
- recordUndoFullDocument(bv->cursor());
+ recordUndoFullDocument(bv);
MatchString const match(searchstr, cs, mw);
int num = 0;
if (replace_count == 1) {
lv->message(_("String has been replaced."));
} else {
- string str = tostr(replace_count);
+ string str = convert<string>(replace_count);
str += _(" strings have been replaced.");
lv->message(str);
}
if (!bv->available())
return false;
- DocIterator cur = DocIterator(bv->cursor());
+ DocIterator cur = bv->cursor();
if (!findChange(cur))
return false;