diff options
author | Ash Wolf <ninji@wuffs.org> | 2023-07-01 02:43:29 +0100 |
---|---|---|
committer | Ash Wolf <ninji@wuffs.org> | 2023-07-01 02:43:29 +0100 |
commit | 5c6a48b2ff362a70416a6a00fda7d06e0f276f2d (patch) | |
tree | 62cf542c68d91aa6f7a4e3bfa9eddca4ab352970 /src/T2DLL/T2DlgItemPeopleView.cpp | |
parent | c0c336500955a23e344651e5412c9d9d441ef4ee (diff) | |
download | t2win-5c6a48b2ff362a70416a6a00fda7d06e0f276f2d.tar.gz t2win-5c6a48b2ff362a70416a6a00fda7d06e0f276f2d.zip |
i am in hell
Diffstat (limited to '')
-rw-r--r-- | src/T2DLL/T2DlgItemPeopleView.cpp | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/src/T2DLL/T2DlgItemPeopleView.cpp b/src/T2DLL/T2DlgItemPeopleView.cpp index d0689a5..c205a2a 100644 --- a/src/T2DLL/T2DlgItemPeopleView.cpp +++ b/src/T2DLL/T2DlgItemPeopleView.cpp @@ -7,11 +7,17 @@ #include "T2PeopleLinkIterator.h" #include "UT2Coordinate.h" +#ifdef _DEBUG +#define new DEBUG_NEW +#undef THIS_FILE +static char THIS_FILE[] = __FILE__; +#endif + T2DlgItemPeopleView::T2DlgItemPeopleView(T2TowerDoc* inDoc, T2ImageObj* inImageObj, CPalette* inPalette) : T2DlgItem(inDoc, inImageObj, inPalette) { #line 20 - mArray = DEBUG_NEW LArray(sizeof(T2People *)); + mArray = new LArray(sizeof(T2People *)); mImage = NULL; } @@ -36,7 +42,7 @@ T2DlgItemPeopleView::T2DlgItemPeopleView(T2TowerDoc* inDoc, T2ImageObj* inImageO scrollerRect.top = scrollerRect.bottom - 16; #line 47 - T2DlgItemHScr *theScroller = DEBUG_NEW T2DlgItemHScr(mTowerDoc, mImageObj, mPalette); + T2DlgItemHScr *theScroller = new T2DlgItemHScr(mTowerDoc, mImageObj, mPalette); theScroller->Create("", WS_VISIBLE | WS_CHILD, scrollerRect, this, 100); } @@ -188,7 +194,7 @@ void T2DlgItemPeopleView::FinishAdd() { CRect imageRect(0, 0, width, 36); #line 214 - mImage = DEBUG_NEW T2BitImage(imageRect); + mImage = new T2BitImage(imageRect); mImage->Clear(0); int h = 0; |