Changeset 129977 in webkit


Ignore:
Timestamp:
Sep 29, 2012, 7:40:24 AM (13 years ago)
Author:
commit-queue@webkit.org
Message:

Fix build warning : -Wparentheses.
https://bugs.webkit.org/show_bug.cgi?id=97961

Patch by Byungwoo Lee <bw80.lee@samsung.com> on 2012-09-29
Reviewed by Kentaro Hara.

Explicit braces are added around the && statement to fix -Wparentheses warning.

  • mathml/MathMLElement.h:

(WebCore::toMathMLElement):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r129975 r129977  
     12012-09-29  Byungwoo Lee  <bw80.lee@samsung.com>
     2
     3        Fix build warning : -Wparentheses.
     4        https://bugs.webkit.org/show_bug.cgi?id=97961
     5
     6        Reviewed by Kentaro Hara.
     7
     8        Explicit braces are added around the && statement to fix -Wparentheses warning.
     9
     10        * mathml/MathMLElement.h:
     11        (WebCore::toMathMLElement):
     12
    1132012-09-29  Kenneth Rohde Christiansen  <kenneth@webkit.org>
    214
  • trunk/Source/WebCore/mathml/MathMLElement.h

    r129695 r129977  
    5555inline MathMLElement* toMathMLElement(Node* node)
    5656{
    57     ASSERT(!node || node->isElementNode() && static_cast<Element*>(node)->isMathMLElement());
     57    ASSERT(!node || (node->isElementNode() && static_cast<Element*>(node)->isMathMLElement()));
    5858    return static_cast<MathMLElement*>(node);
    5959}
Note: See TracChangeset for help on using the changeset viewer.