QDebug: adjust documentation of space(), nospace() and maybeSpace()

Reality is that they control a "current mode" in the stream, not a
"bool that remembers if the last character was a space".

Change-Id: Ic907c34bcb458039b73ddff48021e19f0c24c78c
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
This commit is contained in:
David Faure 2012-07-27 14:20:42 +02:00 committed by Qt by Nokia
parent 8e49def48e
commit 54e3ce1705

View File

@ -138,8 +138,8 @@
Writes a space character to the debug stream and returns a reference to Writes a space character to the debug stream and returns a reference to
the stream. the stream.
The stream will record that the last character sent to the stream was a The stream remembers that automatic insertion of spaces is
space. enabled for future writes.
\sa nospace(), maybeSpace() \sa nospace(), maybeSpace()
*/ */
@ -147,8 +147,7 @@
/*! /*!
\fn QDebug &QDebug::nospace() \fn QDebug &QDebug::nospace()
Clears the stream's internal flag that records whether the last character Disables automatic insertion of spaces and returns a reference to the stream.
was a space and returns a reference to the stream.
\sa space(), maybeSpace() \sa space(), maybeSpace()
*/ */
@ -156,11 +155,8 @@
/*! /*!
\fn QDebug &QDebug::maybeSpace() \fn QDebug &QDebug::maybeSpace()
Writes a space character to the debug stream, depending on the last Writes a space character to the debug stream, depending on the current
character sent to the stream, and returns a reference to the stream. setting for automatic insertion of spaces, and returns a reference to the stream.
If the last character was a space character, this function writes a space
character to the stream; otherwise, no characters are written to the stream.
\sa space(), nospace() \sa space(), nospace()
*/ */