[rygel] renderer: Fix minor style issues



commit 3e302aad893ee410552b4ef6b89ea430a63888d3
Author: Jens Georg <jensg openismus com>
Date:   Mon Sep 30 11:56:02 2013 +0200

    renderer: Fix minor style issues

 src/librygel-renderer/rygel-time-utils.vala |   16 +++++++++++-----
 1 files changed, 11 insertions(+), 5 deletions(-)
---
diff --git a/src/librygel-renderer/rygel-time-utils.vala b/src/librygel-renderer/rygel-time-utils.vala
index b7865f3..f6a66b4 100644
--- a/src/librygel-renderer/rygel-time-utils.vala
+++ b/src/librygel-renderer/rygel-time-utils.vala
@@ -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;


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