mirror of
https://github.com/openmoh/openmohaa.git
synced 2025-04-28 21:57:57 +03:00
Fix assignment of a temporary to a non-const reference error on GCC
This commit is contained in:
parent
6e454cdfb3
commit
fa5a97031d
1 changed files with 2 additions and 1 deletions
|
@ -149,7 +149,8 @@ static ctrlevent_s controlEvents[CTRL_EVENT_COUNT] = {
|
|||
bool UI_LoadNotepadFile(const char *filename)
|
||||
{
|
||||
UINotepad *uinp = new UINotepad();
|
||||
if (uinp->Create(NULL, UIRect2D(100.0f, 100.0f, 450.0f, 300.0f), filename)) {
|
||||
UIRect2D rect = UIRect2D(100.0f, 100.0f, 450.0f, 300.0f);
|
||||
if (uinp->Create(NULL, rect, filename)) {
|
||||
uWinMan.ActivateControl(uinp);
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue