]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/qt_helpers.C
enable Font cache only for MacOSX and inline width() for other platform.
[lyx.git] / src / frontends / qt4 / qt_helpers.C
index 44fcf98e2f92fa6a886e6b3d19849375c9cbd89e..3f419624f38839979c434ed338ddfff3fcbbc228 100644 (file)
@@ -159,13 +159,13 @@ void qstring_to_ucs4(QString const & qstr, vector<char_type> & ucs4)
        int const ls = qstr.size();
        ucs4.clear();
        for (int i = 0; i < ls; ++i)
-               ucs4.push_back(static_cast<boost::uint32_t>(qstr[i].unicode()));
+               ucs4.push_back(static_cast<lyx::char_type>(qstr[i].unicode()));
 }
 
 
 char_type const qchar_to_ucs4(QChar const & qchar)
 {
-       return static_cast<boost::uint32_t>(qchar.unicode());
+       return static_cast<lyx::char_type>(qchar.unicode());
 }