App: fix memory leaks in Enumeration class and simplify code

This commit is contained in:
wmayer
2022-05-10 18:47:23 +02:00
committed by wwmayer
parent f13abb44a4
commit 2628fb0350
12 changed files with 329 additions and 340 deletions

View File

@@ -249,7 +249,7 @@ void ViewProviderFemPostObject::updateProperties() {
//coloring
std::string val;
if (Field.getEnums() && Field.getValue() >= 0)
if (Field.hasEnums() && Field.getValue() >= 0)
val = Field.getValueAsString();
std::vector<std::string> colorArrays;
@@ -278,7 +278,7 @@ void ViewProviderFemPostObject::updateProperties() {
Field.purgeTouched();
//Vector mode
if (VectorMode.getEnums() && VectorMode.getValue() >= 0)
if (VectorMode.hasEnums() && VectorMode.getValue() >= 0)
val = VectorMode.getValueAsString();
colorArrays.clear();