changeset 306:745001b1a52c

Fix compile error.
author Frank Benoit <benoit@tionex.de>
date Mon, 08 Sep 2008 11:32:37 +0200
parents a401002c3a1f
children 10de361de572
files dwt/dwthelper/utils.d dwt/graphics/TextLayout.d
diffstat 2 files changed, 6 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/dwt/dwthelper/utils.d	Mon Sep 08 01:43:08 2008 +0200
+++ b/dwt/dwthelper/utils.d	Mon Sep 08 11:32:37 2008 +0200
@@ -812,6 +812,10 @@
     dst[ dstBegin .. dstBegin + srcEnd - srcBegin ] = src[ srcBegin .. srcEnd ];
 }
 
+public char[] toWCharArray( String str ){
+    return toString16(str);
+}
+
 public char[] toCharArray( String str ){
     return str;
 }
--- a/dwt/graphics/TextLayout.d	Mon Sep 08 01:43:08 2008 +0200
+++ b/dwt/graphics/TextLayout.d	Mon Sep 08 11:32:37 2008 +0200
@@ -132,8 +132,8 @@
         }
         synchronized {
             if( !static_this_completed ){
-                OS.IIDFromString("{275c23e2-3747-11d0-9fea-00aa003f8646}\0".toCharArray().ptr, CLSID_CMultiLanguage.ptr);
-                OS.IIDFromString("{DCCFC162-2B38-11d2-B7EC-00C04F8F5D9A}\0".toCharArray().ptr, IID_IMLangFontLink2.ptr);
+                OS.IIDFromString("{275c23e2-3747-11d0-9fea-00aa003f8646}\0".toWCharArray().ptr, CLSID_CMultiLanguage.ptr);
+                OS.IIDFromString("{DCCFC162-2B38-11d2-B7EC-00C04F8F5D9A}\0".toWCharArray().ptr, IID_IMLangFontLink2.ptr);
                 static_this_completed = true;
             }
         }