Skip to content

Commit

Permalink
remove part of #pragma clang diagnostic ignored "-Wdeprecated".
Browse files Browse the repository at this point in the history
  • Loading branch information
johzzy committed Dec 8, 2024
1 parent 2ac8a1a commit 029cb2f
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions BGMApp/PublicUtility/CAPropertyAddress.h
Original file line number Diff line number Diff line change
Expand Up @@ -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); } }
Expand Down

0 comments on commit 029cb2f

Please sign in to comment.