mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2024-11-22 17:07:20 +01:00
Use memnew() instead of new.
This commit is contained in:
parent
b8d602f847
commit
899e3b671d
@ -47,7 +47,7 @@ void PagedArticles::load() {
|
||||
if (dir->current_is_dir() && file_name != "." && file_name != "..") {
|
||||
String ff = folder + "/" + file_name;
|
||||
|
||||
PagedArticle *p = new PagedArticle();
|
||||
PagedArticle *p = memnew(PagedArticle);
|
||||
|
||||
p->set_articles_folder(ff);
|
||||
p->set_uri_segment(file_name);
|
||||
|
Loading…
Reference in New Issue
Block a user