diff org.eclipse.swt.win32.win32.x86/src/org/eclipse/swt/graphics/Path.d @ 39:0ecb2b338560

further work on phobosification
author Frank Benoit <benoit@tionex.de>
date Wed, 25 Mar 2009 13:20:43 +0100
parents 6bf2837c50fe
children
line wrap: on
line diff
--- a/org.eclipse.swt.win32.win32.x86/src/org/eclipse/swt/graphics/Path.d	Wed Mar 25 11:18:25 2009 +0100
+++ b/org.eclipse.swt.win32.win32.x86/src/org/eclipse/swt/graphics/Path.d	Wed Mar 25 13:20:43 2009 +0100
@@ -296,8 +296,8 @@
     if (isDisposed()) SWT.error(SWT.ERROR_GRAPHIC_DISPOSED);
     if (font is null) SWT.error(SWT.ERROR_NULL_ARGUMENT);
     if (font.isDisposed()) SWT.error(SWT.ERROR_INVALID_ARGUMENT);
-    wchar[] wstr = StrToWCHARs( string );
-    wchar* buffer = wstr.ptr;
+    String16 wstr = StrToWCHARs( string );
+    LPCWSTR buffer = wstr.ptr;
     int length = wstr.length;
     auto hDC = device.internal_new_GC(null);
     auto gdipFont = GC.createGdipFont(hDC, font.handle);