Core: Use a shared_ptr for i18n categories.
This does not make them thread safe, but it reduces the chances of a crash a bit (see #12594.)
This commit is contained in:
parent
a4ba5d4859
commit
5009698cc0
54 changed files with 244 additions and 240 deletions
|
@ -240,8 +240,8 @@ void ProductView::CreateViews() {
|
|||
Add(new TextView(entry_.name));
|
||||
Add(new TextView(entry_.author));
|
||||
|
||||
I18NCategory *st = GetI18NCategory("Store");
|
||||
I18NCategory *di = GetI18NCategory("Dialog");
|
||||
auto st = GetI18NCategory("Store");
|
||||
auto di = GetI18NCategory("Dialog");
|
||||
wasInstalled_ = IsGameInstalled();
|
||||
if (!wasInstalled_) {
|
||||
installButton_ = Add(new Button(st->T("Install")));
|
||||
|
@ -431,8 +431,8 @@ void StoreScreen::CreateViews() {
|
|||
|
||||
root_ = new LinearLayout(ORIENT_VERTICAL);
|
||||
|
||||
I18NCategory *di = GetI18NCategory("Dialog");
|
||||
I18NCategory *st = GetI18NCategory("Store");
|
||||
auto di = GetI18NCategory("Dialog");
|
||||
auto st = GetI18NCategory("Store");
|
||||
|
||||
// Top bar
|
||||
LinearLayout *topBar = root_->Add(new LinearLayout(ORIENT_HORIZONTAL));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue