]> git.lyx.org Git - features.git/commitdiff
Fix 64bit<->32bit issue.
authorLars Gullik Bjønnes <larsbj@gullik.org>
Sun, 25 Jun 2006 11:27:33 +0000 (11:27 +0000)
committerLars Gullik Bjønnes <larsbj@gullik.org>
Sun, 25 Jun 2006 11:27:33 +0000 (11:27 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14203 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/qt4/QLPainter.C

index 5636cfb03a67d041a565ccdd3222424fc76c35f1..1124a426c0834497dfa32a95259dac53aa2c20c8 100644 (file)
@@ -220,7 +220,7 @@ void QLPainter::smallCapsText(int x, int y,
        setQPainterPen(f.realColor());
        int tmpx = x;
        size_t ls = s.length();
-       for (size_t i = 0; i < ls; ++i) {
+       for (unsigned int i = 0; i < ls; ++i) {
                QChar const c = s[i].upper();
                if (c != s.at(i)) {
                        qp_->setFont(qsmallfont);
@@ -244,7 +244,7 @@ void QLPainter::text(int x, int y, char const * s, size_t ls,
 
        QString str;
        str.setLength(ls);
-       for (size_t i = 0; i < ls; ++i)
+       for (unsigned int i = 0; i < ls; ++i)
                str[i] = QChar(encoding->ucs(s[i]));
 
        // HACK: QT3 refuses to show single compose characters
@@ -282,4 +282,3 @@ void QLPainter::drawImage(int x, int y, QImage const & image)
 
 } // namespace frontend
 } // namespace lyx
-