浏览代码

Update M3DImporter.cpp

Kim Kulling 3 年之前
父节点
当前提交
331cb5ac72
共有 1 个文件被更改,包括 2 次插入4 次删除
  1. 2 4
      code/AssetLib/M3D/M3DImporter.cpp

+ 2 - 4
code/AssetLib/M3D/M3DImporter.cpp

@@ -112,10 +112,8 @@ M3DImporter::M3DImporter() :
 // ------------------------------------------------------------------------------------------------
 //  Returns true, if file is a binary or ASCII Model 3D file.
 bool M3DImporter::CanRead(const std::string &pFile, IOSystem *pIOHandler, bool /*checkSig*/) const {
-    /*
-     * don't use CheckMagicToken because that checks with swapped bytes too, leading to false
-     * positives. This magic is not uint32_t, but char[4], so memcmp is the best way
-     */
+    // don't use CheckMagicToken because that checks with swapped bytes too, leading to false
+    // positives. This magic is not uint32_t, but char[4], so memcmp is the best way
     std::unique_ptr<IOStream> pStream(pIOHandler->Open(pFile, "rb"));
     unsigned char data[4];
     if (4 != pStream->Read(data, 1, 4)) {