From 29f5901e25ae4480d006ccb294b3cc7dea277b84 Mon Sep 17 00:00:00 2001 From: Armin Novak Date: Wed, 3 Dec 2025 14:18:43 +0100 Subject: [PATCH] [client,SDL] add CStringPtr type Allows wrapping allocated C strings to automatically free them when no longer used. --- client/SDL/common/sdl_common_utils.hpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/client/SDL/common/sdl_common_utils.hpp b/client/SDL/common/sdl_common_utils.hpp index 4b9d3810c..b20b69cef 100644 --- a/client/SDL/common/sdl_common_utils.hpp +++ b/client/SDL/common/sdl_common_utils.hpp @@ -19,8 +19,12 @@ */ #pragma once +#include + #include +using CStringPtr = std::unique_ptr; + bool operator==(const MONITOR_ATTRIBUTES& l, const MONITOR_ATTRIBUTES& r); bool operator==(const rdpMonitor& l, const rdpMonitor& r);