Mesh: fix (Qt) issues found by clang's clazy tool

This commit is contained in:
wmayer
2022-06-30 13:14:03 +02:00
parent 316352fa50
commit 9a8a1795fb
2 changed files with 4 additions and 4 deletions

View File

@@ -93,7 +93,7 @@ ViewProviderMeshCurvature::ViewProviderMeshCurvature()
pcColorRoot->ref();
pcColorMat = new SoMaterial;
pcColorMat->ref();
pcColorStyle = new SoDrawStyle();
pcColorStyle = new SoDrawStyle();
pcColorRoot->addChild(pcColorStyle);
// simple color bar
pcColorBar = new Gui::SoFCColorBar;
@@ -181,7 +181,7 @@ void ViewProviderMeshCurvature::init(const Mesh::PropertyCurvatureList* pCurvInf
aMaxValues.push_back( jt->fMaxCurvature );
}
if ( aMinValues.empty() || aMaxValues.empty() )
if ( aMinValues.empty() || aMaxValues.empty() )
return; // no values inside
float fMin = *std::min_element( aMinValues.begin(), aMinValues.end() );