Material: fix compiler warnings

* unused parameter 'parent' [-Wunused-parameter]
* reference cannot be bound to dereferenced null pointer in well-defined C++ code; comparison may be assumed to always evaluate to false [-Wtautological-undefined-compare]
This commit is contained in:
wmayer
2023-11-02 13:43:52 +01:00
committed by wwmayer
parent 84b01b70e0
commit 3d7375e3ad
2 changed files with 2 additions and 6 deletions

View File

@@ -90,10 +90,6 @@ bool ModelProperty::operator==(const ModelProperty& other) const
return true;
}
if (&other == nullptr) {
return false;
}
return (_name == other._name) && (_propertyType == other._propertyType)
&& (_units == other._units) && (_url == other._url) && (_description == other._description)
&& (_inheritance == other._inheritance);