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