changeset 180:39921f499a22

Fix #26
author SokoL_SD
date Thu, 02 Jul 2009 12:04:40 +0000
parents d69b58c01131
children b426da0c9720
files examples/dialogs/classwizard/classwizard.d generator/typesystem_core-java.java generator/typesystem_core.xml
diffstat 3 files changed, 14 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/examples/dialogs/classwizard/classwizard.d	Thu Jul 02 11:39:57 2009 +0000
+++ b/examples/dialogs/classwizard/classwizard.d	Thu Jul 02 12:04:40 2009 +0000
@@ -148,7 +148,7 @@
 					headerFile.errorString()));
 			return;
 		}
-		headerFile.write(block.ptr, block.length);
+		headerFile.write(block);
 
 		block.length = 0;
 
@@ -202,7 +202,7 @@
 					implementationFile.errorString()));
 			return;
 		}
-		implementationFile.write(block.ptr, block.length);
+		implementationFile.write(block);
 
 		QDialog.accept();
 	}
--- a/generator/typesystem_core-java.java	Thu Jul 02 11:39:57 2009 +0000
+++ b/generator/typesystem_core-java.java	Thu Jul 02 12:04:40 2009 +0000
@@ -462,6 +462,10 @@
         return success ? np.byteValue() : -1;
     }
 */
+
+    public final long write(string str) {
+	return write(str.ptr, str.length);
+    } 
 }// class
 
 class QCryptographicHash___ extends QCryptographicHash {
--- a/generator/typesystem_core.xml	Thu Jul 02 11:39:57 2009 +0000
+++ b/generator/typesystem_core.xml	Thu Jul 02 12:04:40 2009 +0000
@@ -1759,6 +1759,14 @@
             <access modifier="private"/>
             <rename to="getByte"/>
         </modify-function>
+	
+	<modify-function signature="write(const char*)">
+            <access modifier="private"/>
+        </modify-function>
+	
+	<modify-function signature="write(const char*,long long)">
+            <access modifier="private"/>
+        </modify-function>
 
 <!--
         <modify-function signature="peek(char*,long long)">