diff options
Diffstat (limited to 'examples/multimedia/video/qmlvideofx/trace.h')
-rw-r--r-- | examples/multimedia/video/qmlvideofx/trace.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/examples/multimedia/video/qmlvideofx/trace.h b/examples/multimedia/video/qmlvideofx/trace.h index 86e46b33e..b251deb3d 100644 --- a/examples/multimedia/video/qmlvideofx/trace.h +++ b/examples/multimedia/video/qmlvideofx/trace.h @@ -62,8 +62,9 @@ struct PtrWrapper template <typename T> inline QDebug &operator<<(QDebug &debug, const Trace::PtrWrapper<T> &wrapper) { - debug.nospace() << "[" << (void*)wrapper.m_ptr << "]"; - return debug.space(); + QDebugStateSaver saver(debug); + debug.nospace() << '[' << static_cast<const void *>(wrapper.m_ptr) << ']'; + return debug; } #ifdef ENABLE_TRACE |