From a12e588079700d55a0b788fea2df7727c2e41f52 Mon Sep 17 00:00:00 2001 From: Aki Date: Sun, 27 Mar 2022 17:42:26 +0200 Subject: Removed MemDebug from FoundationEx --- Stars45/ListBox.cpp | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) (limited to 'Stars45/ListBox.cpp') diff --git a/Stars45/ListBox.cpp b/Stars45/ListBox.cpp index 1434b45..8b4eeeb 100644 --- a/Stars45/ListBox.cpp +++ b/Stars45/ListBox.cpp @@ -11,7 +11,6 @@ ListBox ActiveWindow class */ -#include "MemDebug.h" #include "ListBox.h" #include "Button.h" #include "Bitmap.h" @@ -559,7 +558,7 @@ void ListBox::SetItemText(int index, int column, const char* text) column--; if (column >= 0 && column < columns.size()-1) { while (column >= item->subitems.size()) { - ListBoxCell* cell = new(__FILE__,__LINE__) ListBoxCell; + ListBoxCell* cell = new ListBoxCell; if (cell) item->subitems.append(cell); } @@ -599,7 +598,7 @@ void ListBox::SetItemData(int index, int column, DWORD data) column--; if (column >= 0 && column < columns.size()-1) { while (column >= item->subitems.size()) { - ListBoxCell* cell = new(__FILE__,__LINE__) ListBoxCell; + ListBoxCell* cell = new ListBoxCell; if (cell) item->subitems.append(cell); } @@ -639,7 +638,7 @@ void ListBox::SetItemImage(int index, int column, Bitmap* img) column--; if (column >= 0 && column < columns.size()-1) { while (column >= item->subitems.size()) { - ListBoxCell* cell = new(__FILE__,__LINE__) ListBoxCell; + ListBoxCell* cell = new ListBoxCell; if (cell) item->subitems.append(cell); } @@ -651,7 +650,7 @@ void ListBox::SetItemImage(int index, int column, Bitmap* img) int ListBox::AddItem(const char* text) { - ListBoxItem* item = new(__FILE__,__LINE__) ListBoxItem; + ListBoxItem* item = new ListBoxItem; if (item) { item->text = text; @@ -669,7 +668,7 @@ int ListBox::AddItem(const char* text) int ListBox::AddItemWithData(const char* text, int data) { - ListBoxItem* item = new(__FILE__,__LINE__) ListBoxItem; + ListBoxItem* item = new ListBoxItem; if (item) { item->text = text; @@ -688,7 +687,7 @@ int ListBox::AddItemWithData(const char* text, int data) int ListBox::AddImage(Bitmap* img) { - ListBoxItem* item = new(__FILE__,__LINE__) ListBoxItem; + ListBoxItem* item = new ListBoxItem; if (item) { item->image = img; @@ -707,7 +706,7 @@ int ListBox::AddImage(Bitmap* img) void ListBox::InsertItem(int index, const char* text) { if (index >=0 && index < items.size()) { - ListBoxItem* item = new(__FILE__,__LINE__) ListBoxItem; + ListBoxItem* item = new ListBoxItem; if (item) { item->text = text; @@ -724,7 +723,7 @@ void ListBox::InsertItem(int index, const char* text) void ListBox::InsertItemWithData(int index, const char* text, int data) { if (index >=0 && index < items.size()) { - ListBoxItem* item = new(__FILE__,__LINE__) ListBoxItem; + ListBoxItem* item = new ListBoxItem; if (item) { item->text = text; @@ -775,7 +774,7 @@ void ListBox::RemoveSelectedItems() void ListBox::AddColumn(const char* title, int width, int align, int sort) { - ListBoxColumn* column = new(__FILE__,__LINE__) ListBoxColumn; + ListBoxColumn* column = new ListBoxColumn; if (column) { column->title = title; -- cgit v1.1