Tidy formatting.
authorCarl Hetherington <carl@carlh.net>
Tue, 30 Aug 2011 11:32:40 +0000 (11:32 +0000)
committerCarl Hetherington <carl@carlh.net>
Tue, 30 Aug 2011 11:32:40 +0000 (11:32 +0000)
git-svn-id: svn://localhost/ardour2/branches/3.0@10031 d708f5d6-7413-0410-9779-e7cbd77b26cf

libs/ardour/route_group.cc

index ef7e218d67f3c5593985662287c84747e7de67f7..4e9baa082e16a0322afc08d87e251a7336a1e3ed 100644 (file)
@@ -198,15 +198,17 @@ RouteGroup::get_max_factor(gain_t factor)
                g = (*i)->amp()->gain();
 
                // if the current factor woulnd't raise this route above maximum
-               if ( (g+g*factor) <= 1.99526231f)
+               if ((g + g * factor) <= 1.99526231f) {
                        continue;
+               }
 
                // if route gain is already at peak, return 0.0f factor
-           if (g>=1.99526231f)
+               if (g >= 1.99526231f) {
                        return 0.0f;
+               }
 
                // factor is calculated so that it would raise current route to max
-               factor = 1.99526231f/g - 1.0f;
+               factor = 1.99526231f / g - 1.0f;
        }
 
        return factor;