]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/xforms/FontInfo.C
the convert patch
[lyx.git] / src / frontends / xforms / FontInfo.C
index bb30ae35429047a262b202127d270bb3ae12fab9..675ce939b327ad48835468ce880820647eba40d6 100644 (file)
@@ -32,7 +32,6 @@ using std::string;
 
 namespace lyx {
 
-using support::atoi;
 using support::token;
 
 namespace frontend {
@@ -143,14 +142,14 @@ void FontInfo::query()
                        string name(list[i]);
                        lyxerr[Debug::FONT] << "match #" << i << ' '
                                            << name << endl;
-                       sizes[i] = atoi(token(name, '-', 7));
+                       sizes[i] = convert<int>(token(name, '-', 7));
                        strings[i] = name;
                        if (sizes[i] == 0) {
                                if (scaleindex == -1) {
                                        scaleindex = i;
                                }
                                scalable = true;
-                       } else if (atoi(token(name, '-', 12)) == 0)
+                       } else if (convert<int>(token(name, '-', 12)) == 0)
                                // Ignore bogus matches of scalable fonts.
                                sizes[i] = 0;
                };