renderer: Fix minor style issues
authorJens Georg <jensg@openismus.com>
Mon, 30 Sep 2013 09:56:02 +0000 (11:56 +0200)
committerJens Georg <jensg@openismus.com>
Mon, 30 Sep 2013 09:56:02 +0000 (11:56 +0200)
src/librygel-renderer/rygel-time-utils.vala

index b7865f3..f6a66b4 100644 (file)
@@ -32,18 +32,24 @@ internal abstract class Rygel.TimeUtils {
         switch (str[0]) {
             case '-':
                 sign = -1;
-                time_str = str.substring(1);
+                time_str = str.substring (1);
+
                 break;
             case '+':
-                time_str = str.substring(1);
+                time_str = str.substring (1);
+
                 break;
             default:
                 break;
         }
 
-        time_str.scanf ("%llu:%2llu:%2llu%*s", out hours, out minutes, out seconds);
+        time_str.scanf ("%llu:%2llu:%2llu%*s",
+                        out hours,
+                        out minutes,
+                        out seconds);
 
-        return sign*(int64)(hours * 3600 + minutes * 60 + seconds) * TimeSpan.SECOND;
+        return sign * (int64)(hours * 3600 + minutes * 60 + seconds) *
+               TimeSpan.SECOND;
     }
 
     public static string time_to_string (int64 time) {
@@ -52,7 +58,7 @@ internal abstract class Rygel.TimeUtils {
 
         if (time < 0) {
             sign = "-";
-            time = - time;
+            time = -time;
         };
 
         hours   = time / TimeSpan.SECOND / 3600;