summaryrefslogtreecommitdiffstats
path: root/src/plugins/tracing/qctflib.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/tracing/qctflib.cpp')
-rw-r--r--src/plugins/tracing/qctflib.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/tracing/qctflib.cpp b/src/plugins/tracing/qctflib.cpp
index 3690bb6370..367ee3c3c8 100644
--- a/src/plugins/tracing/qctflib.cpp
+++ b/src/plugins/tracing/qctflib.cpp
@@ -31,10 +31,10 @@ static const char traceMetadataTemplate[] =
static const size_t traceMetadataSize = sizeof(traceMetadataTemplate);
template <typename T>
-QByteArray &operator<<(QByteArray &arr, T val)
+static QByteArray &operator<<(QByteArray &arr, T val)
{
static_assert(std::is_arithmetic_v<T>);
- arr.append((char *)&val, sizeof(val));
+ arr.append(reinterpret_cast<char *>(&val), sizeof(val));
return arr;
}