]> git.lyx.org Git - lyx.git/blobdiff - src/rowpainter.C
LFUN_UNICODE_INSERT - unicode-insert
[lyx.git] / src / rowpainter.C
index 899e86d0fcb2fca8475cfc6f22feac2e97d894a8..7be384bfdff366361a7330603aaf53a59fcab058 100644 (file)
@@ -267,6 +267,7 @@ void RowPainter::paintChars(pos_type & vpos, LyXFont font,
        str += par_.getChar(pos);
 #else
        std::vector<char_type> str;
+       str.reserve(100);
        str.push_back(par_.getChar(pos));
 #endif
        if (arabic) {
@@ -767,10 +768,10 @@ size_type calculateRowSignature(Row const & row, Paragraph const & par,
 {
        boost::crc_32_type crc;
        for (pos_type i = row.pos(); i < row.endpos(); ++i) {
-               const unsigned char b[] = { par.getChar(i) };
+               char_type const b[] = { par.getChar(i) };
                crc.process_bytes(b, 1);
        }
-       const unsigned char b[] = { x, y, row.width() };
+       char_type const b[] = { x, y, row.width() };
        crc.process_bytes(b, 3);
        return crc.checksum();
 }