diff --git a/cmake/CompilerWarnings.cmake b/cmake/CompilerWarnings.cmake index e84b08a2..2cd1d240 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 62f512fc..143ff8d8 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 befd71c8..80a4a7ae 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 e68277ab..141db6a1 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