]> git.mxchange.org Git - simgear.git/commitdiff
Do not initialize _center to save unneeded initialization time.
authorErik Hofman <erik@ehofman.com>
Tue, 20 Dec 2011 09:00:33 +0000 (10:00 +0100)
committerErik Hofman <erik@ehofman.com>
Tue, 20 Dec 2011 09:00:33 +0000 (10:00 +0100)
simgear/math/SGSphere.hxx

index 7d6a8d3c8be5387c456b5951def92784aeb1aae7..26649e1b12c5202f62bdf999e462509c1b0c70d1 100644 (file)
@@ -22,7 +22,11 @@ template<typename T>
 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<T>& center, const T& radius) :