Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacques Lucke <jacques@blender.org>2020-07-03 15:59:27 +0300
committerJacques Lucke <jacques@blender.org>2020-07-03 15:59:27 +0300
commit2633683b52054d15006aea1314f62f73a8505b42 (patch)
treea97b2916170b53f04fc9a898f4eedb527f14f84e /source/blender/io/collada/SkinInfo.cpp
parent93da09d717ff4502975c506c574faf0c07f010b4 (diff)
Clang-tidy: enable readability-container-size-empty warning
Reviewers: sergey Differential Revision: https://developer.blender.org/D8197
Diffstat (limited to 'source/blender/io/collada/SkinInfo.cpp')
-rw-r--r--source/blender/io/collada/SkinInfo.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/io/collada/SkinInfo.cpp b/source/blender/io/collada/SkinInfo.cpp
index 317e0b37796..5692d11d0c3 100644
--- a/source/blender/io/collada/SkinInfo.cpp
+++ b/source/blender/io/collada/SkinInfo.cpp
@@ -49,7 +49,7 @@
template<class T> static const char *bc_get_joint_name(T *node)
{
const std::string &id = node->getName();
- return id.size() ? id.c_str() : node->getOriginalId().c_str();
+ return id.empty() ? node->getOriginalId().c_str() : id.c_str();
}
/* This is used to store data passed in write_controller_data.