Update StarMainApplication_sdl.cpp
This commit is contained in:
parent
65cf738832
commit
8d0dcd11d7
@ -460,8 +460,8 @@ private:
|
|||||||
Maybe<String> getClipboard() override {
|
Maybe<String> getClipboard() override {
|
||||||
Maybe<String> string;
|
Maybe<String> string;
|
||||||
if (SDL_HasClipboardText()) {
|
if (SDL_HasClipboardText()) {
|
||||||
auto text = SDL_GetClipboardText();
|
if (auto text = SDL_GetClipboardText()) {
|
||||||
if (text && *text != NULL) {
|
if (*text != NULL)
|
||||||
string.emplace(text);
|
string.emplace(text);
|
||||||
SDL_free(text);
|
SDL_free(text);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user