[Development] QNoDebug - available but undocumented

Smith Martin Martin.Smith at theqtcompany.com
Fri Jul 31 10:26:55 CEST 2015


qdebug.cpp should contain a comment like this:

/*!
  \class QNoDebug
  \internal
*/

________________________________________
From: development-bounces+martin.smith=theqtcompany.com at qt-project.org <development-bounces+martin.smith=theqtcompany.com at qt-project.org> on behalf of Olivier Goffart <olivier at woboq.com>
Sent: Thursday, July 30, 2015 2:36 PM
To: development at qt-project.org
Subject: Re: [Development] QNoDebug - available but undocumented

On Thursday 30. July 2015 13:33:28 Tomasz Siekierda wrote:
> Hi,
>
> just a quick observation: QNoDebug class can be used in code (compiles,
> works fine), but there is no documentation for it.
>
> Is that intentional? Shouldn't it be either hidden (made private) or
> documented? Although I have just learned about it's existence by accident,
> it looks like it can be quite useful, so I vote for adding some docs.

It's a fake class that replaces QDebug when QT_NO_DEBUG_OUTPUT is defined.
That way the code compiles but is optimized away.

--
Olivier

Woboq - Qt services and support - http://woboq.com - http://code.woboq.org
_______________________________________________
Development mailing list
Development at qt-project.org
http://lists.qt-project.org/mailman/listinfo/development



More information about the Development mailing list