Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- bool operator==(const InheritedFlags& other) const
- {
- ...
- return
- (_empty_cells == other._empty_cells) &&
- (_caption_side == other._caption_side) &&
- (_list_style_type == other._list_style_type) &&
- (_list_style_position == other._list_style_position) &&
- (_visibility == other._visibility) &&
- (_text_align == other._text_align) &&
- (_text_transform == other._text_transform) && <<<---
- (_text_decorations == other._text_decorations) &&
- (_text_transform == other._text_transform) && <<<---
- (_cursor_style == other._cursor_style) &&
- (_direction == other._direction) &&
- (_border_collapse == other._border_collapse) &&
- (_white_space == other._white_space) &&
- (_box_direction == other._box_direction) &&
- (_visuallyOrdered == other._visuallyOrdered) &&
- (_htmlHacks == other._htmlHacks) &&
- (_force_backgrounds_to_white ==
- other._force_backgrounds_to_white) &&
- (_pointerEvents == other._pointerEvents);
- ...
- }
- There's no error. It's just an unnecessary line. It is still useful to find and fix such code fragments: your code will become a bit shorter.
- This suspicious code was found in QT project by PVS-Studio static code analyzer.
- Warning message is:
- V501 There are identical sub-expressions to the left and to the right of the '&&' operator. QtWebKit renderstyle.h 162
- PVS-Studio is a static analyzer for detecting bugs in the source code of applications written in C, C++, C++11, C++/CX. Site: http://www.viva64.com/en/pvs-studio/
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement