[Kde-bindings] KDE/kdebindings

Arno Rehn kde at arnorehn.de
Sat Aug 11 15:41:13 UTC 2007


SVN commit 698946 by arnorehn:

* Check for a GCHandle being zero before freeing it.
* Added implicit type conversions for QUrl.

CCMAIL: kde-bindings at kde.org



 M  +5 -0      csharp/qyoto/ChangeLog  
 M  +1 -1      csharp/qyoto/core/QUrl.cs  
 A             csharp/qyoto/core/QUrlExtras.cs  
 M  +7 -1      csharp/qyoto/src/SmokeMarshallers.cs  
 M  +1 -0      kalyptus/kalyptusCxxToKimono.pm  


--- trunk/KDE/kdebindings/csharp/qyoto/ChangeLog #698945:698946
@@ -1,3 +1,8 @@
+2007-08-11  Arno Rehn  <arno at arnorehn.de>
+
+	* Check for a GCHandle being zero before freeing it.
+	* Added implicit type conversions for QUrl.
+
 2007-08-09  Richard Dale  <rdale at foton.es>
 
 	* Added some missing implicit type conversions to better match 
--- trunk/KDE/kdebindings/csharp/qyoto/core/QUrl.cs #698945:698946
@@ -5,7 +5,7 @@
 	using System.Collections.Generic;
 
 	[SmokeClass("QUrl")]
-	public class QUrl : Object, IDisposable {
+	public partial class QUrl : Object, IDisposable {
 		protected SmokeInvocation interceptor = null;
 		private IntPtr smokeObject;
 		protected QUrl(Type dummy) {}
--- trunk/KDE/kdebindings/csharp/qyoto/src/SmokeMarshallers.cs #698945:698946
@@ -212,9 +212,15 @@
 
 		public static void FreeGCHandle(IntPtr handle) {
 #if DEBUG
+			if ((QDebug.DebugChannel() & QtDebugChannel.QTDB_GC) != 0 ) {
+				if (handle == IntPtr.Zero) {
+					Console.WriteLine("In FreeGCHandle(IntPtr): handle == 0");
+					return;
+				}
+			}
 			DebugGCHandle.Free((GCHandle) handle);
 #else
-			((GCHandle) handle).Free();
+			if (handle != IntPtr.Zero) ((GCHandle) handle).Free();
 #endif
 		}
 		
--- trunk/KDE/kdebindings/kalyptus/kalyptusCxxToKimono.pm #698945:698946
@@ -291,6 +291,7 @@
    'QSqlQueryModel' => '1',
    'QStringListModel' => '1',
    'Qt' => '1',
+   'QUrl' => '1',
    'QVariant' => '1',
 );
 



More information about the Kde-bindings mailing list