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:
authorSybren A. Stüvel <sybren@blender.org>2020-12-04 14:46:43 +0300
committerSybren A. Stüvel <sybren@blender.org>2020-12-04 14:46:43 +0300
commit7f2d356a672d838c90cf47e9ff4006b15c104148 (patch)
treea87f8056750bc810f1430d03c14e8c93e170f3fd /source/blender/ikplugin/intern/itasc_plugin.cpp
parent10a8286a267d1796983f321dd01668d6072570ed (diff)
Cleanup: Clang-Tidy, modernize-use-using
Replace `typedef` with `using` in C++ code. In the case of `typedef struct SomeName { ... } SomeName;` I removed the `typedef` altogether, as this is unnecessary in C++. Such cases have been rewritten to `struct SomeName { ... };` No functional changes.
Diffstat (limited to 'source/blender/ikplugin/intern/itasc_plugin.cpp')
-rw-r--r--source/blender/ikplugin/intern/itasc_plugin.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/ikplugin/intern/itasc_plugin.cpp b/source/blender/ikplugin/intern/itasc_plugin.cpp
index 6846a09f57b..7047b6f3727 100644
--- a/source/blender/ikplugin/intern/itasc_plugin.cpp
+++ b/source/blender/ikplugin/intern/itasc_plugin.cpp
@@ -73,8 +73,8 @@ struct IK_Data {
struct IK_Scene *first;
};
-typedef float Vector3[3];
-typedef float Vector4[4];
+using Vector3 = float[3];
+using Vector4 = float[4];
struct IK_Target;
typedef void (*ErrorCallback)(const iTaSC::ConstraintValues *values,
unsigned int nvalues,