From 354984cc039585343751501b6467c3e331809508 Mon Sep 17 00:00:00 2001 From: Don Pellegrino Date: Thu, 03 Sep 2009 01:44:03 +0000 Subject: Taking advantage of declaration and definition in the same line to save space and make the code more readable. --- diff --git a/src/model/geometry/density_legend_geometry.c b/src/model/geometry/density_legend_geometry.c index ac3280c..af40e5e 100644 --- a/src/model/geometry/density_legend_geometry.c +++ b/src/model/geometry/density_legend_geometry.c @@ -22,15 +22,10 @@ density_legend_geometry (void) double c[2]; double d[2]; - const double *left; - const double *right; - const double *top; - const double *bottom; - - left = &S.ortho.min_x; - right = &S.ortho.max_x; - bottom = &S.ortho.min_y; - top = &S.ortho.max_y; + const double *left = &S.ortho.min_x; + const double *right = &S.ortho.max_x; + const double *top = &S.ortho.max_y; + const double *bottom = &S.ortho.min_y; /* * This value should be a percentage of the world height so that it -- cgit v0.8.3.1-22-g547a