summaryrefslogtreecommitdiffstats
path: root/libraries/qt4/patches/qt-everywhere-opensource-src-4.8.7-fix_pointer_comparison_to_0.patch
blob: b60b5349021ab0df1da7d91b3d00ec1617715604 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
--- ./src/3rdparty/webkit/Source/WebCore/html/HTMLImageElement.cpp
+++ ./src/3rdparty/webkit/Source/WebCore/html/HTMLImageElement.cpp
@@ -74,7 +74,7 @@
     RefPtr<HTMLImageElement> image = adoptRef(new HTMLImageElement(imgTag, document));
     if (optionalWidth)
         image->setWidth(*optionalWidth);
-    if (optionalHeight > 0)
+    if (optionalHeight)
         image->setHeight(*optionalHeight);
     return image.release();
 }
--- ./tools/linguist/linguist/messagemodel.cpp
+++ ./tools/linguist/linguist/messagemodel.cpp
@@ -183,7 +183,7 @@
         if (ContextItem *c = one->findContext(oc->context())) {
             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()))
                     ++inBoth;
             }
         }