Mercurial > projects > dwt2
diff org.eclipse.swt.win32.win32.x86/src/org/eclipse/swt/widgets/TableItem.d @ 39:0ecb2b338560
further work on phobosification
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Wed, 25 Mar 2009 13:20:43 +0100 |
parents | 2e09b0e6857a |
children |
line wrap: on
line diff
--- a/org.eclipse.swt.win32.win32.x86/src/org/eclipse/swt/widgets/TableItem.d Wed Mar 25 11:18:25 2009 +0100 +++ b/org.eclipse.swt.win32.win32.x86/src/org/eclipse/swt/widgets/TableItem.d Wed Mar 25 13:20:43 2009 +0100 @@ -276,8 +276,8 @@ int width = 0; auto hFont = fontHandle (column); if (hFont is cast(HFONT)-1 && hDC is null) { - TCHAR* buffer = StrToTCHARz (parent.getCodePage (), text); - width = OS.SendMessage (hwnd, OS.LVM_GETSTRINGWIDTH, 0, buffer); + LPCTSTR buffer = StrToTCHARz (parent.getCodePage (), text); + width = OS.SendMessage (hwnd, OS.LVM_GETSTRINGWIDTH, 0, cast(void*)buffer); } else { StringT buffer = StrToTCHARs (parent.getCodePage (), text, false); auto textDC = hDC !is null ? hDC : OS.GetDC (hwnd), oldFont = cast(HFONT)-1; @@ -1187,7 +1187,7 @@ checkWidget(); if (index is 0) { if (string.equals(text)) return; - super.setText (string.idup); + super.setText (string._idup()); } int count = Math.max (1, parent.getColumnCount ()); if (0 > index || index > count - 1) return; @@ -1197,7 +1197,7 @@ } if (strings !is null) { if (string==/*eq*/strings [index]) return; - strings [index] = string.idup; + strings [index] = string._idup(); } if ((parent.style & SWT.VIRTUAL) !is 0) cached = true; if (index is 0) {