[moserial] fix runtime warnings in rz/szwrapper



commit b0189c525e8eaf8f03c8a15f6ed523c300096a29
Author: Marlo <brooss teambb gmail com>
Date:   Mon Feb 14 12:45:03 2011 -0500

    fix runtime warnings in rz/szwrapper

 src/Rzwrapper.vala |    3 ++-
 src/Szwrapper.vala |    3 ++-
 2 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/src/Rzwrapper.vala b/src/Rzwrapper.vala
index 05530a8..29769ce 100644
--- a/src/Rzwrapper.vala
+++ b/src/Rzwrapper.vala
@@ -36,7 +36,8 @@ public class moserial.Rzwrapper: GLib.Object
         public string? path {get; construct;}
         public string filename {get; construct;}
 	public Rzwrapper(Protocol? protocol, SerialConnection? sc, string? p, string? filename) {
-		GLib.Object(protocol: protocol, 
+		Protocol pro = protocol;
+		GLib.Object(protocol: pro, 
 			sc: sc, path: p, 
 			filename: filename);
 	}
diff --git a/src/Szwrapper.vala b/src/Szwrapper.vala
index 7106336..1412162 100644
--- a/src/Szwrapper.vala
+++ b/src/Szwrapper.vala
@@ -36,7 +36,8 @@ public class moserial.Szwrapper: GLib.Object
         
         public string filename {get; construct;}
 	public Szwrapper(Protocol? protocol, SerialConnection? sc, string? filename) {
-		GLib.Object(protocol: protocol, 
+		Protocol pro = protocol;
+		GLib.Object(protocol: pro, 
 			sc: sc, 
 			filename: filename);
 	}



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]