From 48af7409f6da847d90f20934e15c9c8a6ee7955e Mon Sep 17 00:00:00 2001 From: Drew Smith Date: Thu, 22 Sep 2022 00:28:00 -0400 Subject: [PATCH] fixed -Wshadow warning on clang --- include/ctre/utf8.hpp | 4 ++-- single-header/ctre-unicode.hpp | 4 ++-- single-header/ctre.hpp | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/include/ctre/utf8.hpp b/include/ctre/utf8.hpp index 49a7c0b6..28e0f2cf 100644 --- a/include/ctre/utf8.hpp +++ b/include/ctre/utf8.hpp @@ -38,8 +38,8 @@ struct utf8_iterator { friend auto operator==(self_type, self_type) noexcept -> bool; auto operator*() noexcept -> reference; - friend constexpr auto operator==(self_type, const char8_t * ptr) noexcept { - return *ptr == char8_t{0}; + friend constexpr auto operator==(self_type, const char8_t * other_ptr) noexcept { + return *other_ptr == char8_t{0}; } }; diff --git a/single-header/ctre-unicode.hpp b/single-header/ctre-unicode.hpp index 8ffefc53..d7ffb0c1 100644 --- a/single-header/ctre-unicode.hpp +++ b/single-header/ctre-unicode.hpp @@ -3062,8 +3062,8 @@ struct utf8_iterator { friend auto operator==(self_type, self_type) noexcept -> bool; auto operator*() noexcept -> reference; - friend constexpr auto operator==(self_type, const char8_t * ptr) noexcept { - return *ptr == char8_t{0}; + friend constexpr auto operator==(self_type, const char8_t * other_ptr) noexcept { + return *other_ptr == char8_t{0}; } }; diff --git a/single-header/ctre.hpp b/single-header/ctre.hpp index 8d8673b3..5f8da189 100644 --- a/single-header/ctre.hpp +++ b/single-header/ctre.hpp @@ -3059,8 +3059,8 @@ struct utf8_iterator { friend auto operator==(self_type, self_type) noexcept -> bool; auto operator*() noexcept -> reference; - friend constexpr auto operator==(self_type, const char8_t * ptr) noexcept { - return *ptr == char8_t{0}; + friend constexpr auto operator==(self_type, const char8_t * other_ptr) noexcept { + return *other_ptr == char8_t{0}; } };