diff --git a/src/3rdparty/webkit/Source/WebCore/html/HTMLImageElement.cpp b/src/3rdparty/webkit/Source/WebCore/html/HTMLImageElement.cpp index d66075e4..b51a27ad 100644 --- a/src/3rdparty/webkit/Source/WebCore/html/HTMLImageElement.cpp +++ b/src/3rdparty/webkit/Source/WebCore/html/HTMLImageElement.cpp @@ -74,7 +74,7 @@ PassRefPtr HTMLImageElement::createForJSConstructor(Document* RefPtr image = adoptRef(new HTMLImageElement(imgTag, document)); if (optionalWidth) image->setWidth(*optionalWidth); - if (optionalHeight > 0) + if (optionalHeight != 0) image->setHeight(*optionalHeight); return image.release(); } diff --git a/tools/linguist/linguist/messagemodel.cpp b/tools/linguist/linguist/messagemodel.cpp index 61c5389f..8d43d14b 100644 --- a/tools/linguist/linguist/messagemodel.cpp +++ b/tools/linguist/linguist/messagemodel.cpp @@ -183,7 +183,7 @@ static int calcMergeScore(const DataModel *one, const DataModel *two) 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()) != 0) ++inBoth; } }