diff options
author | Marco Bubke <marco.bubke@qt.io> | 2024-03-21 15:38:15 +0100 |
---|---|---|
committer | Marco Bubke <marco.bubke@qt.io> | 2024-03-21 21:07:50 +0000 |
commit | 39a2b8f2e6f32040e824f21c2532853d036fce82 (patch) | |
tree | bcfb670e120cb4cf9b43213c84a41eedcddf5fa3 /src/libs | |
parent | 06f75dbdbfe8c57e602c4fc258ab8934cd208089 (diff) |
Nanotrace: Initialize variables
Change-Id: Id80d6324a287e7391a4a7b32c495869a9312bef3
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
Diffstat (limited to 'src/libs')
-rw-r--r-- | src/libs/nanotrace/nanotracehr.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/libs/nanotrace/nanotracehr.h b/src/libs/nanotrace/nanotracehr.h index 37e06b559b..810e4e3c5d 100644 --- a/src/libs/nanotrace/nanotracehr.h +++ b/src/libs/nanotrace/nanotracehr.h @@ -366,7 +366,7 @@ auto array(Entries &&...entries) return std::make_tuple(isArray, std::forward<Entries>(entries)...); } -enum class IsFlow : std::size_t { No = 0, Out = 1 << 0, In = 1 << 1, InOut = In | Out }; +enum class IsFlow : char { No = 0, Out = 1 << 0, In = 1 << 1, InOut = In | Out }; inline bool operator&(IsFlow first, IsFlow second) { @@ -393,8 +393,8 @@ struct alignas(4096) TraceEvent TimePoint time; Duration duration; std::size_t id = 0; - std::size_t bindId : 62; - IsFlow flow : 2; + std::size_t bindId = 0; + IsFlow flow = IsFlow::No; char type = ' '; ArgumentsString arguments; }; @@ -1589,8 +1589,8 @@ private: private: StringType m_name; - std::size_t m_bindId; - IsFlow flow; + std::size_t m_bindId = 0; + IsFlow flow = IsFlow::No; CategoryFunctionPointer m_category; }; |