Browse Source

remove read unitilize memory

wise86Android 9 years ago
parent
commit
bd032488e4
2 changed files with 8 additions and 7 deletions
  1. 6 6
      code/3DSHelper.h
  2. 2 1
      test/unit/utNoBoostTest.cpp

+ 6 - 6
code/3DSHelper.h

@@ -485,12 +485,12 @@ struct aiFloatKey
 /** Helper structure to represent a 3ds file node */
 /** Helper structure to represent a 3ds file node */
 struct Node
 struct Node
 {
 {
-    Node()
-        : mParent()
-        , mInstanceNumber()
-        ,   mHierarchyPos       (0)
-        ,   mHierarchyIndex     (0)
-        ,   mInstanceCount      (1)
+    Node():
+    	mParent(NULL)
+		,	mInstanceNumber(0)
+		,	mHierarchyPos		(0)
+		,	mHierarchyIndex		(0)
+		,	mInstanceCount		(1)
     {
     {
         static int iCnt = 0;
         static int iCnt = 0;
 
 

+ 2 - 1
test/unit/utNoBoostTest.cpp

@@ -76,7 +76,8 @@ TEST(NoBoostTest, Tuple) {
     EXPECT_EQ(4U, first.get<1>());
     EXPECT_EQ(4U, first.get<1>());
     EXPECT_EQ(4U, first.get<2>());
     EXPECT_EQ(4U, first.get<2>());
 
 
-    boost::tuple<int, float, double, bool, another> second;
+    boost::tuple<int, float, double, bool, another> second=
+    		boost::make_tuple(1,1.0f,0.0,false,another());
     bool b = second.get<3>();
     bool b = second.get<3>();
 
 
     // check empty tuple
     // check empty tuple