]> git.lyx.org Git - features.git/blobdiff - src/toc.C
tostr -> convert and some bformat work
[features.git] / src / toc.C
index 9e06fc52eae051531aaa7067d05a12c46560dbe8..42141c3dc2f29c027069fc88b3467a7aec7cf861 100644 (file)
--- a/src/toc.C
+++ b/src/toc.C
@@ -43,14 +43,14 @@ string const TocItem::asString() const
 
 void TocItem::goTo(LyXView & lv_) const
 {
-       string const tmp = tostr(id_);
+       string const tmp = convert<string>(id_);
        lv_.dispatch(FuncRequest(LFUN_GOTO_PARAGRAPH, tmp));
 }
 
 
 FuncRequest TocItem::action() const
 {
-       return FuncRequest(LFUN_GOTO_PARAGRAPH, tostr(id_));
+       return FuncRequest(LFUN_GOTO_PARAGRAPH, convert<string>(id_));
 }