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
|
@ -202,7 +202,7 @@ void PSPDialog::DisplayButtons(int flags, const char *caption)
|
|||
truncate_cpy(safeCaption, caption);
|
||||
}
|
||||
|
||||
I18NCategory *di = GetI18NCategory("Dialog");
|
||||
auto di = GetI18NCategory("Dialog");
|
||||
float x1 = 183.5f, x2 = 261.5f;
|
||||
if (GetCommonParam()->buttonSwap == 1) {
|
||||
x1 = 261.5f;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue