[Bf-blender-cvs] [db40d5ed976] master: Cleanup: Modernize type definition in Alembic
Sergey Sharybin
noreply at git.blender.org
Fri Feb 5 11:05:12 CET 2021
Commit: db40d5ed9767f8c64f7341bb002dcb4250cdf0b0
Author: Sergey Sharybin
Date: Fri Feb 5 11:04:28 2021 +0100
Branches: master
https://developer.blender.org/rBdb40d5ed9767f8c64f7341bb002dcb4250cdf0b0
Cleanup: Modernize type definition in Alembic
Use newer `using` semantic for type definition.
Solves modernize-use-using Clang-Tidy warning.
===================================================================
M source/blender/io/alembic/intern/abc_util.cc
===================================================================
diff --git a/source/blender/io/alembic/intern/abc_util.cc b/source/blender/io/alembic/intern/abc_util.cc
index aa7beb37dc5..3d3ba0347c5 100644
--- a/source/blender/io/alembic/intern/abc_util.cc
+++ b/source/blender/io/alembic/intern/abc_util.cc
@@ -135,7 +135,7 @@ bool has_property(const Alembic::Abc::ICompoundProperty &prop, const std::string
return prop.getPropertyHeader(name) != nullptr;
}
-typedef std::pair<Alembic::AbcCoreAbstract::index_t, float> index_time_pair_t;
+using index_time_pair_t = std::pair<Alembic::AbcCoreAbstract::index_t, float>;
float get_weight_and_index(float time,
const Alembic::AbcCoreAbstract::TimeSamplingPtr &time_sampling,
More information about the Bf-blender-cvs
mailing list