]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insetbibitem.C
the convert patch
[lyx.git] / src / insets / insetbibitem.C
index 97dca124735548691da66068e1779ee02183e6f8..19144e23104a65c0388056698498f82d43af5757 100644 (file)
@@ -28,7 +28,6 @@
 #include "support/convert.h"
 
 using lyx::support::prefixIs;
-using lyx::support::strToInt;
 
 using std::max;
 using std::string;
@@ -103,7 +102,7 @@ void InsetBibitem::read(Buffer const &, LyXLex & lex)
                lex.printError("InsetCommand: Parse error: `$$Token'");
 
        if (prefixIs(getContents(), key_prefix)) {
-               int key = strToInt(getContents().substr(key_prefix.length()));
+               int const key = convert<int>(getContents().substr(key_prefix.length()));
                key_counter = max(key_counter, key);
        }
 }