浏览代码

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

Kim Kulling 9 年之前
父节点
当前提交
7ef579674d
共有 1 个文件被更改,包括 3 次插入4 次删除
  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
 GenVertexNormalsProcess::GenVertexNormalsProcess()
-{
-    this->configMaxAngle = AI_DEG_TO_RAD(175.f);
+: configMaxAngle( AI_DEG_TO_RAD( 175.f ) ) {
+    // empty
 }
 
 // ------------------------------------------------------------------------------------------------
 // Destructor, private as well
-GenVertexNormalsProcess::~GenVertexNormalsProcess()
-{
+GenVertexNormalsProcess::~GenVertexNormalsProcess() {
     // nothing to do here
 }