From c2efba6907fab934a04959b9bb644cf7141cc955 Mon Sep 17 00:00:00 2001 From: Ash Wolf Date: Sat, 1 Jul 2023 23:04:04 +0100 Subject: matched T2DLL as well as i can --- src/T2DLL/T2DlgItemAPTable.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/T2DLL/T2DlgItemAPTable.cpp') diff --git a/src/T2DLL/T2DlgItemAPTable.cpp b/src/T2DLL/T2DlgItemAPTable.cpp index 11282ff..029df73 100644 --- a/src/T2DLL/T2DlgItemAPTable.cpp +++ b/src/T2DLL/T2DlgItemAPTable.cpp @@ -37,10 +37,10 @@ T2DlgItemAPTable::T2DlgItemAPTable(int inRows, int inCols, int inRowHeight, int pDC->Rectangle(rect); - char *text = new char[128]; - GetCellData(inCell, text); - pDC->DrawText(text, rect, DT_VCENTER | DT_SINGLELINE | DT_NOPREFIX); - delete[] text; + char *theString = new char[128]; + GetCellData(inCell, theString); + pDC->DrawText(theString, rect, DT_VCENTER | DT_SINGLELINE | DT_NOPREFIX); + delete[] theString; pDC->RestoreDC(save); } -- cgit v1.2.3