diff options
Diffstat (limited to 'Stars45/ComboBox.cpp')
-rw-r--r-- | Stars45/ComboBox.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/Stars45/ComboBox.cpp b/Stars45/ComboBox.cpp index 2413a73..4269a96 100644 --- a/Stars45/ComboBox.cpp +++ b/Stars45/ComboBox.cpp @@ -11,7 +11,6 @@ Drop-down list of Buttons class */ -#include "MemDebug.h" #include "ComboBox.h" #include "ComboList.h" #include "Button.h" @@ -295,7 +294,7 @@ void ComboBox::MoveTo(const Rect& r) void ComboBox::ShowList() { if (!list) { - list = new(__FILE__,__LINE__) ComboList(this, screen, + list = new ComboList(this, screen, rect.x, rect.y, rect.w, rect.h, items.size()); @@ -372,7 +371,7 @@ void ComboBox::ClearItems() void ComboBox::AddItem(const char* item) { - Text* t = new(__FILE__,__LINE__) Text(item); + Text* t = new Text(item); if (t) items.append(t); } @@ -392,7 +391,7 @@ void ComboBox::SetItem(int index, const char* item) } else { - Text* t = new(__FILE__,__LINE__) Text(item); + Text* t = new Text(item); if (t) items.append(t); } |