From: Erik Hofman Date: Tue, 20 Dec 2011 09:00:33 +0000 (+0100) Subject: Do not initialize _center to save unneeded initialization time. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=4faf727f1b6f0e5167116334b85228981325a417;p=simgear.git Do not initialize _center to save unneeded initialization time. --- diff --git a/simgear/math/SGSphere.hxx b/simgear/math/SGSphere.hxx index 7d6a8d3c..26649e1b 100644 --- a/simgear/math/SGSphere.hxx +++ b/simgear/math/SGSphere.hxx @@ -22,7 +22,11 @@ template class SGSphere { public: SGSphere() : - _center(0.0, 0.0, 0.0), + /* + * Do not initialize _center to save unneeded initialization time. + * Fix 'may be used uninitialized' warnings locally instead + */ +// _center(0.0, 0.0, 0.0), _radius(-1) { } SGSphere(const SGVec3& center, const T& radius) :