aboutsummaryrefslogtreecommitdiffstats
path: root/alc
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2023-05-05 13:37:50 -0700
committerChris Robinson <[email protected]>2023-05-05 13:50:16 -0700
commitbfe766cd574985465fe1a9f4cffa388ca9ca1f9b (patch)
tree7752588dfa87ae2616fd84437697f4458d4d5293 /alc
parent09b153b85c9f6c75a6361ab2ecb0ed81e8920ff3 (diff)
Use some more standard functions
Diffstat (limited to 'alc')
-rw-r--r--alc/backends/pipewire.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/alc/backends/pipewire.cpp b/alc/backends/pipewire.cpp
index dc52a44d..bb7fc2f2 100644
--- a/alc/backends/pipewire.cpp
+++ b/alc/backends/pipewire.cpp
@@ -1085,9 +1085,9 @@ EventManager::~EventManager()
if(mLoop) mLoop.stop();
for(NodeProxy *node : mNodeList)
- al::destroy_at(node);
+ std::destroy_at(node);
if(mDefaultMetadata)
- al::destroy_at(mDefaultMetadata);
+ std::destroy_at(mDefaultMetadata);
}
void EventManager::kill()
@@ -1095,10 +1095,10 @@ void EventManager::kill()
if(mLoop) mLoop.stop();
for(NodeProxy *node : mNodeList)
- al::destroy_at(node);
+ std::destroy_at(node);
mNodeList.clear();
if(mDefaultMetadata)
- al::destroy_at(mDefaultMetadata);
+ std::destroy_at(mDefaultMetadata);
mDefaultMetadata = nullptr;
mRegistry = nullptr;
@@ -1191,7 +1191,7 @@ void EventManager::removeCallback(uint32_t id)
{
if(node->mId != id)
return false;
- al::destroy_at(node);
+ std::destroy_at(node);
return true;
};
auto node_end = std::remove_if(mNodeList.begin(), mNodeList.end(), clear_node);
@@ -1199,7 +1199,7 @@ void EventManager::removeCallback(uint32_t id)
if(mDefaultMetadata && mDefaultMetadata->mId == id)
{
- al::destroy_at(mDefaultMetadata);
+ std::destroy_at(mDefaultMetadata);
mDefaultMetadata = nullptr;
}
}