diff options
author | Sergey Sharybin <sergey@blender.org> | 2020-08-07 13:17:29 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey@blender.org> | 2020-08-07 13:18:15 +0300 |
commit | cfc6f9eb18e701f5be601b95c45004e8cf7fbc81 (patch) | |
tree | b0e8c1bd77118a364b14ea3c3fa7459177c21a1b /source/blender/io/collada | |
parent | 156448ba4ba350dd6f9718b4610f14f4ba187af6 (diff) |
Clang-Tidy: Address readability-redundant-string-init
Diffstat (limited to 'source/blender/io/collada')
-rw-r--r-- | source/blender/io/collada/AnimationExporter.cpp | 2 | ||||
-rw-r--r-- | source/blender/io/collada/collada_internal.cpp | 2 | ||||
-rw-r--r-- | source/blender/io/collada/collada_utils.cpp | 3 |
3 files changed, 3 insertions, 4 deletions
diff --git a/source/blender/io/collada/AnimationExporter.cpp b/source/blender/io/collada/AnimationExporter.cpp index c25b4ea543b..1515e5413f0 100644 --- a/source/blender/io/collada/AnimationExporter.cpp +++ b/source/blender/io/collada/AnimationExporter.cpp @@ -230,7 +230,7 @@ void AnimationExporter::export_matrix_animation(Object *ob, BCAnimationSampler & std::string name = encode_xml(id_name(ob)); std::string action_name = (action == NULL) ? name + "-action" : id_name(action); std::string channel_type = "transform"; - std::string axis = ""; + std::string axis; std::string id = bc_get_action_id(action_name, name, channel_type, axis); std::string target = translate_id(name) + '/' + channel_type; diff --git a/source/blender/io/collada/collada_internal.cpp b/source/blender/io/collada/collada_internal.cpp index f123e8ea31f..b3fa9ba1251 100644 --- a/source/blender/io/collada/collada_internal.cpp +++ b/source/blender/io/collada/collada_internal.cpp @@ -277,7 +277,7 @@ std::string encode_xml(std::string xml) {'<', "<"}, {'>', ">"}, {'"', """}, {'\'', "'"}, {'&', "&"}}; std::map<char, std::string>::const_iterator it; - std::string encoded_xml = ""; + std::string encoded_xml; for (unsigned int i = 0; i < xml.size(); i++) { char c = xml.at(i); diff --git a/source/blender/io/collada/collada_utils.cpp b/source/blender/io/collada/collada_utils.cpp index 2c54a49198a..df35a1d2780 100644 --- a/source/blender/io/collada/collada_utils.cpp +++ b/source/blender/io/collada/collada_utils.cpp @@ -672,8 +672,7 @@ void BoneExtended::set_bone_layers(std::string layerString, std::vector<std::str std::string BoneExtended::get_bone_layers(int bitfield) { - std::string result = ""; - std::string sep = ""; + std::string sep; int bit = 1u; std::ostringstream ss; |