diff qt/core/QVariant.d @ 46:fd6eb3a1759d

license
author eldar
date Sun, 17 May 2009 21:50:06 +0000
parents 374a61671448
children f46133029d8b
line wrap: on
line diff
--- a/qt/core/QVariant.d	Sun May 17 18:49:59 2009 +0000
+++ b/qt/core/QVariant.d	Sun May 17 21:50:06 2009 +0000
@@ -142,7 +142,7 @@
     }
 
 
-    public this(char[] str) {
+    public this(string str) {
         void* __qt_return_value = qtd_QVariant_QVariant_String(str.ptr, str.length);
         super(__qt_return_value);
     }
@@ -396,9 +396,9 @@
     }
 
     public final string toString() {
-        char[] res;
+        string res;
         qtd_QVariant_toString(nativeId, &res);
-        return cast(string)res;
+        return res;
     }
 
     public final QTime toTime() {