]> git.pld-linux.org Git - packages/qt4.git/commitdiff
- make null checks explicit, linguist crashes on ix86
authorJan Rękorajski <baggins@pld-linux.org>
Wed, 18 Aug 2021 07:34:20 +0000 (09:34 +0200)
committerJan Rękorajski <baggins@pld-linux.org>
Wed, 18 Aug 2021 07:34:20 +0000 (09:34 +0200)
gcc11.patch

index 651cd8036c493911c43e917dc8b9fd9c9d0eb812..0ba2e4bf87c97a64b987e39a226d6741d0c6731a 100644 (file)
@@ -5,7 +5,7 @@
      if (optionalWidth)
          image->setWidth(*optionalWidth);
 -    if (optionalHeight > 0)
-+    if (optionalHeight)
++    if (optionalHeight != 0)
          image->setHeight(*optionalHeight);
      return image.release();
  }
@@ -16,7 +16,7 @@
              for (int j = 0; j < oc->messageCount(); ++j) {
                  MessageItem *m = oc->messageItem(j);
 -                if (c->findMessage(m->text(), m->comment()) >= 0)
-+                if (c->findMessage(m->text(), m->comment()))
++                if (c->findMessage(m->text(), m->comment()) != 0)
                      ++inBoth;
              }
          }
This page took 0.296093 seconds and 4 git commands to generate.