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>
This commit is contained in:
Marco Bubke
2024-03-21 15:38:15 +01:00
parent 06f75dbdbf
commit 39a2b8f2e6

View File

@@ -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;
};