Browse Source

Clang-Tidy - modernize-use-using.

Yao Wei Tjong 姚伟忠 8 years ago
parent
commit
d2b9271f05
2 changed files with 3 additions and 3 deletions
  1. 1 1
      Source/Urho3D/IK/IKEffector.h
  2. 2 2
      Source/Urho3D/Resource/Decompress.cpp

+ 1 - 1
Source/Urho3D/IK/IKEffector.h

@@ -25,7 +25,7 @@
 #include "../Scene/Component.h"
 #include "../Scene/Scene.h"
 
-typedef struct ik_node_t ik_node_t;
+using ik_node_t = struct ik_node_t;
 
 namespace Urho3D
 {

+ 2 - 2
Source/Urho3D/Resource/Decompress.cpp

@@ -463,11 +463,11 @@ void DecompressImageETC(unsigned char* rgba, const void* blocks, int width, int
 #define CLAMP(X, lower, upper) (_MIN(_MAX((X),(lower)), (upper)))
 #define LIMIT_COORD(Val, Size, AssumeImageTiles) ((AssumeImageTiles)? WRAP_COORD((Val), (Size)): CLAMP((Val), 0, (Size)-1))
 
-typedef struct
+using AMTC_BLOCK_STRUCT = struct
 {
     // Uses 64 bits pre block
     unsigned PackedData[2];
-} AMTC_BLOCK_STRUCT;
+};
 
 static void Unpack5554Colour(const AMTC_BLOCK_STRUCT* pBlock, int ABColours[2][4])
 {