Skip to content

Commit e57f7e1

Browse files
committed
DPL: fix comparison of DataDescriptorMatcher
StartTimeValueMatcher was neglected by accident.
1 parent 5cf63ac commit e57f7e1

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

Framework/Core/src/DataDescriptorMatcher.cxx

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -236,6 +236,14 @@ bool DataDescriptorMatcher::operator==(DataDescriptorMatcher const& other) const
236236
}
237237
}
238238

239+
{
240+
auto v1 = std::get_if<StartTimeValueMatcher>(&this->mLeft);
241+
auto v2 = std::get_if<StartTimeValueMatcher>(&other.mLeft);
242+
if (v1 && v2 && *v1 == *v2) {
243+
leftValue = true;
244+
}
245+
}
246+
239247
{
240248
auto v1 = std::get_if<std::unique_ptr<DataDescriptorMatcher>>(&this->mLeft);
241249
auto v2 = std::get_if<std::unique_ptr<DataDescriptorMatcher>>(&other.mLeft);
@@ -285,6 +293,14 @@ bool DataDescriptorMatcher::operator==(DataDescriptorMatcher const& other) const
285293
}
286294
}
287295

296+
{
297+
auto v1 = std::get_if<StartTimeValueMatcher>(&this->mRight);
298+
auto v2 = std::get_if<StartTimeValueMatcher>(&other.mRight);
299+
if (v1 && v2 && *v1 == *v2) {
300+
return true;
301+
}
302+
}
303+
288304
{
289305
auto v1 = std::get_if<std::unique_ptr<DataDescriptorMatcher>>(&this->mRight);
290306
auto v2 = std::get_if<std::unique_ptr<DataDescriptorMatcher>>(&other.mRight);

0 commit comments

Comments
 (0)