From e713f4b718fc00af6f3f7a34c6f2eeb59e4a580a Mon Sep 17 00:00:00 2001 From: AlQuemist <alquemist@Lyriks> Date: Fri, 28 Apr 2023 17:28:45 +0200 Subject: [PATCH] PyObjectPtr: define Status as a class, instead of a struct --- PyCore/Embed/PyObjectPtr.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/PyCore/Embed/PyObjectPtr.h b/PyCore/Embed/PyObjectPtr.h index 8313279a4b9..49fb7af3e8d 100644 --- a/PyCore/Embed/PyObjectPtr.h +++ b/PyCore/Embed/PyObjectPtr.h @@ -6,7 +6,8 @@ #include <string> // Indicator for the status of a result -struct Status { +class Status { +public: enum class Type { None = -1, Info, Warning, Error }; Type type = Type::None; -- GitLab