From b39391238d0f9717e14522cb6dcefb85ec5271df Mon Sep 17 00:00:00 2001 From: John Parejko Date: Fri, 27 Oct 2023 02:14:39 -0700 Subject: [PATCH] Make constants const and static --- src/table/wcsUtils.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/table/wcsUtils.cc b/src/table/wcsUtils.cc index 57558a583..c46fc6119 100644 --- a/src/table/wcsUtils.cc +++ b/src/table/wcsUtils.cc @@ -97,8 +97,8 @@ Eigen::Matrix2f calculateCoordCovariance(geom::SkyWcs const &wcs, lsst::geom::Po // propagate the centroid uncertainty to coordinate uncertainty. Note that // the calculation is done in arcseconds, then converted to radians in // order to achieve higher precision. - double scale = 1.0 / 3600.0; - Eigen::Matrix2d cdMatrix{{scale, 0}, {0, scale}}; + const static double scale = 1.0 / 3600.0; + const static Eigen::Matrix2d cdMatrix{{scale, 0}, {0, scale}}; lsst::geom::SpherePoint skyCenter = wcs.pixelToSky(center); auto localGnomonicWcs = geom::makeSkyWcs(center, skyCenter, cdMatrix);