summaryrefslogtreecommitdiffhomepage
path: root/Stars45/ListBox.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Stars45/ListBox.cpp')
-rw-r--r--Stars45/ListBox.cpp19
1 files changed, 9 insertions, 10 deletions
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;