Review Request: break_lines.h:137: warning: suggest parentheses around & & within ||

Jaroslaw Staniek staniek at kde.org
Wed Oct 21 22:22:14 BST 2009


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://reviewboard.kde.org/r/1922/#review2752
-----------------------------------------------------------

Ship it!


Ok, but just use: 
if ( (row > 0x2d && row < 0xfb) || row == 0x11 ) {

- Jaroslaw


On 2009-10-21 17:36:01, Guy Maurel wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> http://reviewboard.kde.org/r/1922/
> -----------------------------------------------------------
> 
> (Updated 2009-10-21 17:36:01)
> 
> 
> Review request for kdelibs.
> 
> 
> Summary
> -------
> 
> The dashboard
>   http://dashboard.akonadi-project.org/CDash/index.php?project=kdelibs
> reports:
> /.../kdelibs/khtml/rendering/break_lines.h:137: warning: suggest parentheses around && within ||
> 
> at
> inline bool isBreakable( const QChar *str, const int pos, int len )
> 
> my proposal: complete with some more parentheses
> see: break_lines-gm-24.diff
> 
> 
> Diffs
> -----
> 
>   /trunk/KDE/kdelibs/khtml/rendering/break_lines.h 1038700 
> 
> Diff: http://reviewboard.kde.org/r/1922/diff
> 
> 
> Testing
> -------
> 
> 
> Thanks,
> 
> Guy
> 
>





More information about the kde-core-devel mailing list