From 029cb2f5f8b0fb6a47fa7d14e9e8169c3f282dff Mon Sep 17 00:00:00 2001 From: Johnny Date: Sun, 8 Dec 2024 15:15:57 +0800 Subject: [PATCH] remove part of `#pragma clang diagnostic ignored "-Wdeprecated"`. --- BGMApp/PublicUtility/CAPropertyAddress.h | 3 --- 1 file changed, 3 deletions(-) diff --git a/BGMApp/PublicUtility/CAPropertyAddress.h b/BGMApp/PublicUtility/CAPropertyAddress.h index 1d82d7b..d97f26b 100644 --- a/BGMApp/PublicUtility/CAPropertyAddress.h +++ b/BGMApp/PublicUtility/CAPropertyAddress.h @@ -134,11 +134,8 @@ class CAPropertyAddressList const AudioObjectPropertyAddress* GetItems() const { return &(*mAddressList.begin()); } AudioObjectPropertyAddress* GetItems() { return &(*mAddressList.begin()); } -#pragma clang diagnostic push -#pragma clang diagnostic ignored "-Wdeprecated" bool HasItem(const AudioObjectPropertyAddress& inAddress) const { AddressList::const_iterator theIterator = std::find_if(mAddressList.begin(), mAddressList.end(), [&inAddress](const CAPropertyAddress& addr) { return CAPropertyAddress::IsCongruentAddress(addr, inAddress); }); return theIterator != mAddressList.end(); } bool HasExactItem(const AudioObjectPropertyAddress& inAddress) const { AddressList::const_iterator theIterator = std::find_if(mAddressList.begin(), mAddressList.end(), [&inAddress](const CAPropertyAddress& addr) { return CAPropertyAddress::IsSameAddress(addr, inAddress); }); return theIterator != mAddressList.end(); } -#pragma clang diagnostic pop void AppendItem(const AudioObjectPropertyAddress& inAddress) { mAddressList.push_back(inAddress); } void AppendUniqueItem(const AudioObjectPropertyAddress& inAddress) { if(!HasItem(inAddress)) { mAddressList.push_back(inAddress); } }