mirror of
https://github.com/kevinbentley/Descent3.git
synced 2026-04-03 17:00:03 -04:00
mem_malloc type triviality checks (2/8)
Automated replacement with
```
git grep -l mem_malloc |
xargs perl -i -lpe 's{\((\w+) \*\)mem_malloc\(sizeof\(\1\) \* (\S+)\)}{mem_rmalloc<$1>($2)}'
```
This commit is contained in:
@@ -308,7 +308,7 @@ void CScriptSyncDialog::BuildList(void) {
|
||||
if (m_NumFiles == 0)
|
||||
return;
|
||||
|
||||
m_Files = (tFileInfo *)mem_malloc(sizeof(tFileInfo) * m_NumFiles);
|
||||
m_Files = mem_rmalloc<tFileInfo>(m_NumFiles);
|
||||
m_NumFiles = 0;
|
||||
|
||||
if (ManageFindFirst(buffer, "*.cpp")) {
|
||||
|
||||
Reference in New Issue
Block a user