summaryrefslogtreecommitdiffstats
path: root/code/AssetLib/FBX/FBXProperties.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'code/AssetLib/FBX/FBXProperties.cpp')
-rw-r--r--code/AssetLib/FBX/FBXProperties.cpp22
1 files changed, 5 insertions, 17 deletions
diff --git a/code/AssetLib/FBX/FBXProperties.cpp b/code/AssetLib/FBX/FBXProperties.cpp
index 6f577d09f..2b648109c 100644
--- a/code/AssetLib/FBX/FBXProperties.cpp
+++ b/code/AssetLib/FBX/FBXProperties.cpp
@@ -2,8 +2,7 @@
Open Asset Import Library (assimp)
----------------------------------------------------------------------
-Copyright (c) 2006-2024, assimp team
-
+Copyright (c) 2006-2025, assimp team
All rights reserved.
@@ -57,15 +56,11 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
namespace Assimp {
namespace FBX {
- using namespace Util;
+using namespace Util;
// ------------------------------------------------------------------------------------------------
- Property::Property() = default;
-
- // ------------------------------------------------------------------------------------------------
- Property::~Property() = default;
- namespace {
+namespace {
void checkTokenCount(const TokenList &tok, unsigned int expectedCount) {
ai_assert(expectedCount >= 2);
@@ -146,9 +141,9 @@ Property* ReadTypedProperty(const Element& element)
// ------------------------------------------------------------------------------------------------
// peek into an element and check if it contains a FBX property, if so return its name.
-std::string PeekPropertyName(const Element& element)
-{
+std::string PeekPropertyName(const Element& element) {
ai_assert(element.KeyToken().StringContents() == "P");
+
const TokenList& tok = element.Tokens();
if(tok.size() < 4) {
return std::string();
@@ -161,13 +156,6 @@ std::string PeekPropertyName(const Element& element)
// ------------------------------------------------------------------------------------------------
-PropertyTable::PropertyTable()
-: templateProps()
-, element()
-{
-}
-
-// ------------------------------------------------------------------------------------------------
PropertyTable::PropertyTable(const Element &element, std::shared_ptr<const PropertyTable> templateProps) :
templateProps(std::move(templateProps)), element(&element) {
const Scope& scope = GetRequiredScope(element);