From d9dc8ca3b2d32e2084e14f417a0a4c4e99de6674 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Fri, 1 Jul 2016 09:54:58 +0100 Subject: [PATCH] Added initializers --- src/osgPlugins/txp/trpage_io.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/osgPlugins/txp/trpage_io.h b/src/osgPlugins/txp/trpage_io.h index a55633412..77bb85aa6 100644 --- a/src/osgPlugins/txp/trpage_io.h +++ b/src/osgPlugins/txp/trpage_io.h @@ -265,7 +265,7 @@ typedef int trpgMatRef; TX_EXDECL class TX_CLDECL trpg2dPoint { public: double x, y; - trpg2dPoint (void) { }; + trpg2dPoint (void) : x(0.0),y(0.0) { }; trpg2dPoint (double in_x,double in_y) { x = in_x; y = in_y; }; bool operator==(const trpg2dPoint& pt ) const { if ( x != pt.x ) return false; @@ -278,7 +278,7 @@ public: TX_EXDECL class TX_CLDECL trpg2iPoint { public: int x,y; - trpg2iPoint (void) { }; + trpg2iPoint (void) : x(0),y(0) { }; trpg2iPoint (int in_x,int in_y) {x = in_x; y = in_y;}; }; /* Double precision 3 dimensional point. */