From 72782c06d93f37920e0b44844f5c7a238b5f2272 Mon Sep 17 00:00:00 2001 From: Jascha Kasper <69203043+kyomawolf@users.noreply.github.com> Date: Mon, 5 Dec 2022 21:08:55 +0100 Subject: [PATCH] return of stackaddress pointer create a new string object instead of passing down a const string reference --- include/Window.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/Window.hpp b/include/Window.hpp index 2af3a2ab..c1c93a5f 100644 --- a/include/Window.hpp +++ b/include/Window.hpp @@ -362,7 +362,7 @@ class Window { /** * Get clipboard text content */ - inline const std::string& GetClipboardText() { + inline const std::string GetClipboardText() { return ::GetClipboardText(); }