diff options
Diffstat (limited to 'examples/multimedia')
-rw-r--r-- | examples/multimedia/video/qmlvideo/trace.h | 5 | ||||
-rw-r--r-- | examples/multimedia/video/qmlvideofx/trace.h | 5 |
2 files changed, 6 insertions, 4 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> 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 |