diff options
| author | Aldrik Ramaekers <aldrikboy@gmail.com> | 2025-10-05 15:41:23 +0200 |
|---|---|---|
| committer | Aldrik Ramaekers <aldrikboy@gmail.com> | 2025-10-05 15:41:23 +0200 |
| commit | 8aa66a6c6c0d8984b7d2668c03bad5a3b29e3a33 (patch) | |
| tree | d7d985151b5bcd6687aead3547bdfbdb0600a8c6 /src/ui/ui_earnings.cpp | |
| parent | b278d242d03ba614779243ec9e9495fc95abea3d (diff) | |
memops wrapper, remove unused includes
Diffstat (limited to 'src/ui/ui_earnings.cpp')
| -rw-r--r-- | src/ui/ui_earnings.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/ui/ui_earnings.cpp b/src/ui/ui_earnings.cpp index 1ceabbe..8f08bcb 100644 --- a/src/ui/ui_earnings.cpp +++ b/src/ui/ui_earnings.cpp @@ -14,24 +14,24 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -#include <stdlib.h> #include "ui.hpp" #include "imgui.h" -#include "administration.hpp" +#include "memops.hpp" #include "locales.hpp" +#include "administration.hpp" income_statement* statement = 0; void ui::setup_earnings() { - statement = (income_statement*)malloc(sizeof(income_statement)); + statement = (income_statement*)memops::alloc(sizeof(income_statement)); administration::create_income_statement(statement); } void ui::destroy_earnings() { - free(statement); + memops::unalloc(statement); } void ui::draw_earnings() |
