mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-19 00:15:30 +00:00
GUI: Store title String instead of unsafe pointer
This commit is contained in:
parent
ac957852c8
commit
7552b0c008
@ -89,7 +89,7 @@ int BrowserDialog::runModal() {
|
||||
Common::DialogManager *dialogManager = g_system->getDialogManager();
|
||||
if (dialogManager) {
|
||||
if (ConfMan.getBool("gui_browser_native", Common::ConfigManager::kApplicationDomain)) {
|
||||
Common::DialogManager::DialogResult result = dialogManager->showFileBrowser(_title, _choice, _isDirBrowser);
|
||||
Common::DialogManager::DialogResult result = dialogManager->showFileBrowser(_title.c_str(), _choice, _isDirBrowser);
|
||||
if (result != Common::DialogManager::kDialogError) {
|
||||
return result;
|
||||
}
|
||||
|
@ -25,6 +25,7 @@
|
||||
|
||||
#include "gui/dialog.h"
|
||||
#include "common/fs.h"
|
||||
#include "common/str.h"
|
||||
|
||||
namespace GUI {
|
||||
|
||||
@ -53,7 +54,7 @@ protected:
|
||||
CheckboxWidget *_showHiddenWidget;
|
||||
|
||||
Common::FSNode _choice;
|
||||
const char *_title;
|
||||
Common::String _title;
|
||||
bool _isDirBrowser;
|
||||
|
||||
void updateListing();
|
||||
|
Loading…
x
Reference in New Issue
Block a user