[Part] remove more superfluous nullptr checks

This commit is contained in:
Uwe
2022-07-18 01:36:27 +02:00
parent 697e88aed6
commit 5f8e0c46ee
7 changed files with 10 additions and 10 deletions

View File

@@ -840,7 +840,7 @@ void ViewProviderPartExt::reload()
void ViewProviderPartExt::updateData(const App::Property* prop)
{
const char *propName = prop->getName();
if (propName && (strcmp(propName, "Shape") == 0 || strstr(propName, "Touched") != nullptr)) {
if (propName && (strcmp(propName, "Shape") == 0 || strstr(propName, "Touched"))) {
// calculate the visual only if visible
if (isUpdateForced() || Visibility.getValue())
updateVisual();