[Xfce4-commits] <xfce4-stopwatch-plugin:master> Add a couple non-null casts

Diego Ongaro noreply at xfce.org
Sun May 23 05:54:01 CEST 2010


Updating branch refs/heads/master
         to 2c689a3055f76692e845f8c284dd765f7cd51f8b (commit)
       from af8d8c10ce9498a27c32b4ac790385ef2683cc16 (commit)

commit 2c689a3055f76692e845f8c284dd765f7cd51f8b
Author: Diego Ongaro <ongaro at cs.stanford.edu>
Date:   Sat May 22 20:37:20 2010 -0700

    Add a couple non-null casts
    
    Hopefully I'll be able to compile with --enable-experimental-non-null
    eventually.

 panel-plugin/stopwatch.vala |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/panel-plugin/stopwatch.vala b/panel-plugin/stopwatch.vala
index c6b6bb3..078cf08 100644
--- a/panel-plugin/stopwatch.vala
+++ b/panel-plugin/stopwatch.vala
@@ -77,7 +77,7 @@ private class Timer : GLib.Object {
 			else
 				return MyTimeVal.add (this.committed,
 				                      MyTimeVal.sub (MyTimeVal.now (),
-				                                     this.started));
+				                                     (!) this.started));
 		}
 		set {
 			this.stop ();
@@ -114,7 +114,7 @@ private class Timer : GLib.Object {
 		if (this.started != null) {
 			this.committed = MyTimeVal.add (this.committed,
 			                                MyTimeVal.sub (MyTimeVal.now (),
-			                                               this.started));
+			                                               (!) this.started));
 			this.started = null;
 		}
 



More information about the Xfce4-commits mailing list