diff --git a/cmake/CompilerWarnings.cmake b/cmake/CompilerWarnings.cmake index e84b08a2c..2cd1d2403 100644 --- a/cmake/CompilerWarnings.cmake +++ b/cmake/CompilerWarnings.cmake @@ -84,7 +84,7 @@ function(set_file_warnings) ${CLANG_AND_GCC_WARNINGS} ${NON_ANDROID_GCC_WARNINGS} -Wlogical-op # warn about logical operations being used where bitwise were probably wanted - # -Wuseless-cast # warn if you perform a cast to the same type (disabled because it is not portable as some typedefs might vary between platforms) + # -Wuseless-cast # warn if you perform a cast to the same type (disabled because it is not portable as some type aliases might vary between platforms) ) # Don't enable -Wduplicated-branches for GCC < 8.1 since it will lead to false positives diff --git a/examples/joystick/Joystick.cpp b/examples/joystick/Joystick.cpp index 62f512fcf..143ff8d8a 100644 --- a/examples/joystick/Joystick.cpp +++ b/examples/joystick/Joystick.cpp @@ -18,7 +18,7 @@ namespace sf::Text value; }; - typedef std::unordered_map Texts; + using Texts = std::unordered_map; Texts texts; std::ostringstream sstr; float threshold = 0.1f; diff --git a/examples/vulkan/Vulkan.cpp b/examples/vulkan/Vulkan.cpp index befd71c8d..80a4a7aef 100644 --- a/examples/vulkan/Vulkan.cpp +++ b/examples/vulkan/Vulkan.cpp @@ -20,8 +20,8 @@ //////////////////////////////////////////////////////////// namespace { - typedef float Vec3[3]; - typedef float Matrix[4][4]; + using Vec3 = float[3]; + using Matrix = float[4][4]; // Multiply 2 matrices void matrixMultiply(Matrix& result, const Matrix& left, const Matrix& right) diff --git a/include/SFML/Audio/Music.hpp b/include/SFML/Audio/Music.hpp index e68277ab5..141db6a16 100644 --- a/include/SFML/Audio/Music.hpp +++ b/include/SFML/Audio/Music.hpp @@ -84,7 +84,7 @@ public: }; // Define the relevant Span types - typedef Span