Viewer: fix the build.
authorKim Kulling <kim.kulling@slm-solutions.com>
Thu, 1 Jun 2017 14:21:23 +0000 (16:21 +0200)
committerKim Kulling <kim.kulling@slm-solutions.com>
Thu, 1 Jun 2017 14:21:23 +0000 (16:21 +0200)
tools/assimp_view/Display.cpp
tools/assimp_view/LogWindow.cpp
tools/assimp_view/MessageProc.cpp
tools/assimp_view/SceneAnimator.h
tools/assimp_view/assimp_view.cpp

index 91ea957..21c0c02 100644 (file)
@@ -43,6 +43,8 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 #include "SceneAnimator.h"
 #include "StringUtils.h"
 
+#include <commdlg.h>
+
 namespace AssimpView {
 
 using namespace Assimp;
index c21c280..dba70ee 100644 (file)
@@ -41,6 +41,8 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 
 #include "assimp_view.h"
 #include "richedit.h"
+#include <commoncontrols.h>
+#include <commdlg.h>
 
 namespace AssimpView {
 
index 4595c58..b8c5650 100644 (file)
@@ -44,6 +44,8 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 #include <algorithm>
 
 #include <windowsx.h>
+#include <commdlg.h>
+#include <timeapi.h>
 
 namespace AssimpView {
 
index ba79b4f..afcbac9 100644 (file)
@@ -72,20 +72,26 @@ struct SceneAnimNode
     size_t mChannelIndex;
 
     //! Default construction
-    SceneAnimNode() {
-        mChannelIndex = -1; mParent = NULL;
+    SceneAnimNode()
+    : mName()
+    , mParent(NULL)
+    , mChannelIndex(-1) {
+        // empty
     }
 
     //! Construction from a given name
     SceneAnimNode( const std::string& pName)
-        : mName( pName) {
-            mChannelIndex = -1; mParent = NULL;
+    : mName( pName)
+    , mParent(NULL)
+    , mChannelIndex( -1 ) {
+        // empty
     }
 
     //! Destruct all children recursively
     ~SceneAnimNode() {
-        for( std::vector<SceneAnimNode*>::iterator it = mChildren.begin(); it != mChildren.end(); ++it)
+        for (std::vector<SceneAnimNode*>::iterator it = mChildren.begin(); it != mChildren.end(); ++it) {
             delete *it;
+        }
     }
 };
 
index 811fe47..df80e30 100644 (file)
@@ -41,6 +41,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 
 
 #include "assimp_view.h"
+#include <timeapi.h>
 #include "StringUtils.h"
 #include <map>