Unused variable preference
Mark Kretschmann
markey at web.de
Wed Sep 20 17:37:56 UTC 2006
On Wednesday 20 September 2006 17:33, Jeff Mitchell wrote:
> Do we have a preference for whether to comment out an unused variable
> in the code:
>
> void
> SomeClass::SomeFunction( void used, void /*notused*/ )
> {
> }
>
> or whether to use Q_UNUSED():
>
> void
> SomeClass::SomeFunction( void used, void notused )
> {
> Q_UNUSED( notused );
> }
No, that's up to you. Personally I prefer the former.
--
Mark
More information about the Amarok
mailing list