Review Request: Remove some warnings when compiled with: ADD_DEFINITIONS( -Wall -Wextra -Weffc++ -Wstrict-null-sentinel -Wabi -Wreorder -Woverloaded-virtual)

vl at fidra.de vl at fidra.de
Sat Aug 15 11:20:07 BST 2009


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


good idea, but please do not re-initialize properties in the ctor body, especially in a patch that is supposed to improve code quality and style ;-).

so please write

a::a() : m_b(123) {}

instead of

a::a() : m_b(0) { m_b = 123; }

- Torch


On 2009-08-15 09:42:51, Jaime Torres wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> http://reviewboard.kde.org/r/1327/
> -----------------------------------------------------------
> 
> (Updated 2009-08-15 09:42:51)
> 
> 
> Review request for kdelibs.
> 
> 
> Summary
> -------
> 
> Remove some warnings when compiled with: ADD_DEFINITIONS( -Wall -Wextra -Weffc++ -Wstrict-null-sentinel -Wabi -Wreorder -Woverloaded-virtual)
> 
> 
> Diffs
> -----
> 
>   /trunk/KDE/kdelibs/kdecore/compression/kfilterdev.cpp 1011431 
>   /trunk/KDE/kdelibs/kdecore/compression/kgzipfilter.cpp 1011431 
> 
> Diff: http://reviewboard.kde.org/r/1327/diff
> 
> 
> Testing
> -------
> 
> Compiles with less warnings and konqueror works with gzipped http content.
> 
> 
> Thanks,
> 
> Jaime
> 
>





More information about the kde-core-devel mailing list