Materials: Clean up unused variables
Updated error messages no longer refer to the exception object, resulting in compiler warnings.
This commit is contained in:
committed by
Benjamin Nauck
parent
b36a21b721
commit
3178e13f04
@@ -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",
|
||||
|
||||
@@ -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', "
|
||||
|
||||
Reference in New Issue
Block a user