summaryrefslogtreecommitdiffstats
path: root/examples/multimedia/video/qmlvideo/trace.h
diff options
context:
space:
mode:
Diffstat (limited to 'examples/multimedia/video/qmlvideo/trace.h')
-rw-r--r--examples/multimedia/video/qmlvideo/trace.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/examples/multimedia/video/qmlvideo/trace.h b/examples/multimedia/video/qmlvideo/trace.h
index 3bfb1d799..02ba64769 100644
--- a/examples/multimedia/video/qmlvideo/trace.h
+++ b/examples/multimedia/video/qmlvideo/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;
}
template<typename T>