Do not initialize _center to save unneeded initialization time.

This commit is contained in:
Erik Hofman
2011-12-20 10:00:33 +01:00
parent f28e472f59
commit 4faf727f1b

View 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) :