summaryrefslogtreecommitdiffstats
authorDon Pellegrino <don@coffee.donpellegrino.com>2009-09-03 01:44:03 (GMT)
committer Don Pellegrino <don@coffee.donpellegrino.com>2009-09-03 01:44:03 (GMT)
commit354984cc039585343751501b6467c3e331809508 (patch) (side-by-side diff)
treebe8f7415ea25dc2a957d4c3a8aed36c6735265fe
parent5e092a18b061cde68430f1b2bf4457d1e5e8b0fb (diff)
downloadexp005-354984cc039585343751501b6467c3e331809508.zip
exp005-354984cc039585343751501b6467c3e331809508.tar.gz
exp005-354984cc039585343751501b6467c3e331809508.tar.bz2
Taking advantage of declaration and definition in the same line to
save space and make the code more readable.
-rw-r--r--src/model/geometry/density_legend_geometry.c13
1 files changed, 4 insertions, 9 deletions
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

Valid XHTML 1.0 Strict

Copyright © 2009 Don Pellegrino All Rights Reserved.