summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/multimedia/video/qmlvideo/trace.h5
-rw-r--r--examples/multimedia/video/qmlvideofx/trace.h5
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