Codechange: use std::optional<std::string> over char * for text query results
This commit is contained in:
+1
-1
@@ -1039,7 +1039,7 @@ struct QueryStringWindow : public Window
|
||||
if (!this->editbox.handled && this->parent != nullptr) {
|
||||
Window *parent = this->parent;
|
||||
this->parent = nullptr; // so parent doesn't try to close us again
|
||||
parent->OnQueryTextFinished(nullptr);
|
||||
parent->OnQueryTextFinished(std::nullopt);
|
||||
}
|
||||
this->Window::Close();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user