From 7bf6b08fcda6c2fc37405e4a77f23b73191bd671 Mon Sep 17 00:00:00 2001 From: Johannes Hofmann Date: Mon, 14 Nov 2005 22:28:49 +0100 Subject: fix ProjectionSphaeric::comp_params() sprinkle some const add copy constructor to Hill --- src/ProjectionTangential.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/ProjectionTangential.cxx') diff --git a/src/ProjectionTangential.cxx b/src/ProjectionTangential.cxx index 60feaff..8297ee4 100644 --- a/src/ProjectionTangential.cxx +++ b/src/ProjectionTangential.cxx @@ -44,8 +44,8 @@ comp_tilt(double tan_nick_view, double tan_dir_view, double n_scale, double x, double y, double pi_d); int -ProjectionTangential::comp_params(Hill *m1, Hill *m2, ViewParams *parms) { - Hill *tmp; +ProjectionTangential::comp_params(const Hill *m1, const Hill *m2, ViewParams *parms) { + const Hill *tmp; double a_center_tmp, scale_tmp, a_nick_tmp; scale_tmp = comp_scale(m1->alph, m2->alph, m1->x, m2->x); @@ -77,7 +77,7 @@ ProjectionTangential::comp_params(Hill *m1, Hill *m2, ViewParams *parms) { } int -ProjectionTangential::optimize(Hill *m1, Hill *m2, ViewParams *parms) { +ProjectionTangential::optimize(const Hill *m1, const Hill *m2, ViewParams *parms) { int i; double tan_nick_view, tan_dir_view, n_scale; double tan_nick_m1, tan_dir_m1; -- cgit v1.2.3