less memleak

git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@361 b9cfdab3-6d41-4d17-bbe4-086880011989
This commit is contained in:
NishiOwO
2025-10-16 10:42:59 +00:00
parent ba4010eb52
commit 07199650b7
10 changed files with 90 additions and 75 deletions

View File

@@ -5,11 +5,11 @@
MwOO::ListBox::ListBox(const char* widget_name, MwOO::Base* parent, int x, int y, int w, int h) : MwOO::Base(MwListBoxClass, widget_name, parent, x, y, w, h){
}
void MwOO::ListBox::Insert(int index, const char* text){
MwListBoxInsert(this->widget, index, text);
void MwOO::ListBox::Insert(int index, const char* text, MwLLPixmap pixmap){
MwListBoxInsert(this->widget, index, text, pixmap);
}
void MwOO::ListBox::InsertMultiple(int index, char** text, int count){
MwListBoxInsertMultiple(this->widget, index, text, count);
void MwOO::ListBox::InsertMultiple(int index, char** text, MwLLPixmap* pixmap, int count){
MwListBoxInsertMultiple(this->widget, index, text, pixmap, count);
}
void MwOO::ListBox::Delete(int index){
MwListBoxDelete(this->widget, index);