Materials: Clean up unused variables

Updated error messages no longer refer to the exception object, resulting in compiler warnings.
This commit is contained in:
Chris Hennes
2025-05-13 22:13:53 -05:00
committed by Benjamin Nauck
parent b36a21b721
commit 3178e13f04
2 changed files with 2 additions and 2 deletions

View File

@@ -250,7 +250,7 @@ void MaterialYamlEntry::addToTree(
finalModel->setPhysicalValue(QString::fromStdString(propertyName),
propertyValue);
}
catch (const Base::ValueError& e) {
catch (const Base::ValueError&) {
// Units mismatch
Base::Console().log("Units mismatch in material '%s':'%s' = '%s', "
"setting to default property units '%s'\n",

View File

@@ -148,7 +148,7 @@ void MaterialDelegate::setValue(QAbstractItemModel* model,
try {
property->setValue(value);
}
catch (const Base::ValueError& e) {
catch (const Base::ValueError&) {
// Units mismatch
auto quantity = value.value<Base::Quantity>();
Base::Console().log("Units mismatch '%s' = '%s', "