Import: use contains() instead of count() where possible

This commit is contained in:
Benjamin Nauck
2025-03-12 15:59:21 +01:00
parent dd2172e463
commit 4bf7048534
2 changed files with 2 additions and 2 deletions

View File

@@ -2689,7 +2689,7 @@ bool CDxfRead::ReadSection()
}
void CDxfRead::ProcessLayerReference(CDxfRead* object, void* target)
{
if (object->Layers.count(object->m_record_data) == 0) {
if (!object->Layers.contains(object->m_record_data)) {
object->ImportError("First reference to missing Layer '%s'", object->m_record_data);
// Synthesize the Layer so we don't get the same error again.
// We need to take copies of the string arguments because MakeLayer uses them as move