Skip to content

Commit

Permalink
Fix SFML 3 API break
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisThrasher committed Jan 28, 2024
1 parent 5166849 commit eabb73f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion imgui-SFML.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1079,7 +1079,7 @@ void setClipboardText(void* /*userData*/, const char* text) {
}

const char* getClipboardText(void* /*userData*/) {
std::basic_string<std::uint8_t> tmp = sf::Clipboard::getString().toUtf8();
auto tmp = sf::Clipboard::getString().toUtf8();
s_clipboardText.assign(tmp.begin(), tmp.end());
return s_clipboardText.c_str();
}
Expand Down

0 comments on commit eabb73f

Please sign in to comment.