From eabb73fea513704676cd4844a9978dd12f0dade9 Mon Sep 17 00:00:00 2001 From: Chris Thrasher Date: Sun, 28 Jan 2024 14:53:41 -0700 Subject: [PATCH] Fix SFML 3 API break --- imgui-SFML.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/imgui-SFML.cpp b/imgui-SFML.cpp index faa8ffb..b0d19e5 100644 --- a/imgui-SFML.cpp +++ b/imgui-SFML.cpp @@ -1079,7 +1079,7 @@ void setClipboardText(void* /*userData*/, const char* text) { } const char* getClipboardText(void* /*userData*/) { - std::basic_string tmp = sf::Clipboard::getString().toUtf8(); + auto tmp = sf::Clipboard::getString().toUtf8(); s_clipboardText.assign(tmp.begin(), tmp.end()); return s_clipboardText.c_str(); }