mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-09-03 19:25:18 +02:00
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:
@@ -356,8 +356,8 @@ void TouchControlLayoutScreen::CreateViews() {
|
||||
|
||||
using namespace UI;
|
||||
|
||||
I18NCategory *co = GetI18NCategory("Controls");
|
||||
I18NCategory *di = GetI18NCategory("Dialog");
|
||||
auto co = GetI18NCategory("Controls");
|
||||
auto di = GetI18NCategory("Dialog");
|
||||
|
||||
root_ = new AnchorLayout(new LayoutParams(FILL_PARENT, FILL_PARENT));
|
||||
|
||||
@@ -395,7 +395,7 @@ void TouchControlLayoutScreen::CreateViews() {
|
||||
// serves no other purpose.
|
||||
AnchorLayout *controlsHolder = new AnchorLayout(new LayoutParams(FILL_PARENT, FILL_PARENT));
|
||||
|
||||
I18NCategory *ms = GetI18NCategory("MainSettings");
|
||||
auto ms = GetI18NCategory("MainSettings");
|
||||
|
||||
//tabHolder->AddTab(ms->T("Controls"), controlsHolder);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user