Commit 91c9cae7 authored by David Faure's avatar David Faure Committed by The Qt Project
Browse files

QDebugStateSaver: call maybeSpace() in destructor.


tst_qdebug didn't test adding something else after the MyLine object,
so I didn't realize that a space was missing there. All debug operators
should end with maybeSpace(), but with the settings of the caller, so this
requires restoring the settings before calling it. To make it convenient
for all << operators, the destructor of QDebugStateSaver takes care of that.

Change-Id: I18ab78d99d7ee3be951082b5b5d34718ee60e21d
Reviewed-by: default avatarThiago Macieira <thiago.macieira@intel.com>
parent 73d761ff
Showing with 48 additions and 23 deletions
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment