Skip to content

Commit fd63a53

Browse files
authored
Update backend.cpp
1 parent 38cd0bf commit fd63a53

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

src/backend.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,10 +69,8 @@ void DevTools::setupPlatform() {
6969
#endif
7070

7171
// define geode's clipboard funcs for imgui
72-
auto static read = geode::utils::clipboard::read();
7372
ImGui::GetPlatformIO().Platform_GetClipboardTextFn = [](ImGuiContext* ctx) {
74-
read = geode::utils::clipboard::read();
75-
return read.c_str();
73+
return geode::utils::clipboard::read().c_str();
7674
};
7775
ImGui::GetPlatformIO().Platform_SetClipboardTextFn = [](ImGuiContext* ctx, const char* text) {
7876
geode::utils::clipboard::write(text);

0 commit comments

Comments
 (0)