summaryrefslogtreecommitdiffstats
path: root/app/perfattributes.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'app/perfattributes.cpp')
-rw-r--r--app/perfattributes.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/perfattributes.cpp b/app/perfattributes.cpp
index 3493d6b..d13f9ac 100644
--- a/app/perfattributes.cpp
+++ b/app/perfattributes.cpp
@@ -25,7 +25,7 @@
PerfEventAttributes::PerfEventAttributes()
{
- memset(this, 0, sizeof(PerfEventAttributes));
+ *this = PerfEventAttributes{};
}
QDataStream &operator>>(QDataStream &stream, PerfEventAttributes &attrs)