clang-tidy: modernize-use-using
authorColin Clark <colin.clark@cclark.uk>
Fri, 2 Feb 2024 16:18:19 +0000 (16:18 +0000)
committerColin Clark <colin.clark@cclark.uk>
Fri, 2 Feb 2024 16:18:19 +0000 (16:18 +0000)
- Fix warnings identified by this flag
- Remove the exclude from .clang-tidy file

.clang-tidy
src/image-load-webp.cc

index 717b72b..255a172 100644 (file)
@@ -45,7 +45,6 @@ Checks: >
   -modernize-raw-string-literal,
   -modernize-use-auto,
   -modernize-use-trailing-return-type,
-  -modernize-use-using,
   -performance-no-int-to-ptr,
   -readability-braces-around-statements,
   -readability-duplicate-include,
index 61403d4..111169f 100644 (file)
@@ -26,7 +26,7 @@
 #ifdef HAVE_WEBP
 #include <webp/decode.h>
 
-typedef struct _ImageLoaderWEBP ImageLoaderWEBP;
+using ImageLoaderWEBP = struct _ImageLoaderWEBP;
 struct _ImageLoaderWEBP {
        ImageLoaderBackendCbAreaUpdated area_updated_cb;
        ImageLoaderBackendCbSize size_cb;