瀏覽代碼

Replace use of nullptr in headers with NULL

rdb 8 年之前
父節點
當前提交
5bb35f3af6
共有 2 個文件被更改,包括 3 次插入3 次删除
  1. 2 2
      include/assimp/anim.h
  2. 1 1
      include/assimp/metadata.h

+ 2 - 2
include/assimp/anim.h

@@ -377,9 +377,9 @@ struct aiAnimation {
     : mDuration(-1.)
     , mTicksPerSecond(0.)
     , mNumChannels(0)
-    , mChannels(nullptr)
+    , mChannels(NULL)
     , mNumMeshChannels(0)
-    , mMeshChannels(nullptr) {
+    , mMeshChannels(NULL) {
         // empty
     }
 

+ 1 - 1
include/assimp/metadata.h

@@ -187,7 +187,7 @@ struct aiMetadata {
     static inline
     aiMetadata *Alloc( unsigned int numProperties ) {
         if ( 0 == numProperties ) {
-            return nullptr;
+            return NULL;
         }
 
         aiMetadata *data = new aiMetadata;