1
0
mirror of https://github.com/strawberrymusicplayer/strawberry synced 2025-01-27 15:49:43 +01:00

mutex_protected: Return bool for operator==

This commit is contained in:
Jonas Kvinge 2024-11-10 15:37:35 +01:00
parent 3de3c52c01
commit 04064ebf68

View File

@ -37,12 +37,12 @@ class mutex_protected : public boost::noncopyable {
return value_;
}
T operator==(const mutex_protected &value) const {
bool operator==(const mutex_protected &value) const {
QMutexLocker l(&mutex_);
return value == value_;
return value.value() == value_;
}
T operator==(const T value) const {
bool operator==(const T value) const {
QMutexLocker l(&mutex_);
return value == value_;
}