Browse Source

GenVertexNormalsProcess: use initalizer list instead of setting the earch angle in the constructor.

Kim Kulling 9 years ago
parent
commit
7ef579674d
1 changed files with 3 additions and 4 deletions
  1. 3 4
      code/GenVertexNormalsProcess.cpp

+ 3 - 4
code/GenVertexNormalsProcess.cpp

@@ -56,14 +56,13 @@ using namespace Assimp;
 // ------------------------------------------------------------------------------------------------
 // ------------------------------------------------------------------------------------------------
 // Constructor to be privately used by Importer
 // Constructor to be privately used by Importer
 GenVertexNormalsProcess::GenVertexNormalsProcess()
 GenVertexNormalsProcess::GenVertexNormalsProcess()
-{
-    this->configMaxAngle = AI_DEG_TO_RAD(175.f);
+: configMaxAngle( AI_DEG_TO_RAD( 175.f ) ) {
+    // empty
 }
 }
 
 
 // ------------------------------------------------------------------------------------------------
 // ------------------------------------------------------------------------------------------------
 // Destructor, private as well
 // Destructor, private as well
-GenVertexNormalsProcess::~GenVertexNormalsProcess()
-{
+GenVertexNormalsProcess::~GenVertexNormalsProcess() {
     // nothing to do here
     // nothing to do here
 }
 }