Fix the usage of memory, strings, constant and parameters

This commit is contained in:
smallmodel 2024-09-08 23:54:47 +02:00
parent b84fbf452e
commit 725561b655
No known key found for this signature in database
GPG key ID: 9F2D623CEDF08512
8 changed files with 20 additions and 18 deletions

View file

@ -370,7 +370,7 @@ bool UINotepad::Create(UIWidget *parent, UIRect2D& rect, const char *filename)
uipd = new uipopup_describe("Save As...(Ctrl-A)", UIP_EVENT, &EV_Notepad_SaveAs, NULL);
pops->AddObject(uipd);
uipd = new uipopup_describe(NULL, UIP_SEPARATOR, NULL, NULL);
uipd = new uipopup_describe(str(), UIP_SEPARATOR, NULL, NULL);
pops->AddObject(uipd);
uipd = new uipopup_describe("Close (Ctrl-W)", UIP_EVENT, &UIFloatingWindow::W_ClosePressed, NULL);
@ -389,7 +389,7 @@ bool UINotepad::Create(UIWidget *parent, UIRect2D& rect, const char *filename)
uipd = new uipopup_describe("Paste (Ctrl-V)", UIP_EVENT, &EV_Notepad_Paste, NULL);
pops->AddObject(uipd);
uipd = new uipopup_describe(NULL, UIP_SEPARATOR, NULL, NULL);
uipd = new uipopup_describe(str(), UIP_SEPARATOR, NULL, NULL);
pops->AddObject(uipd);
uipd = new uipopup_describe("Find (Ctrl-F)", UIP_EVENT, &EV_Notepad_Find, NULL);