aboutsummaryrefslogtreecommitdiffstats
path: root/typesystem.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'typesystem.cpp')
-rw-r--r--typesystem.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/typesystem.cpp b/typesystem.cpp
index 843f18267..a3543750b 100644
--- a/typesystem.cpp
+++ b/typesystem.cpp
@@ -992,11 +992,8 @@ bool Handler::startElement(const QString &, const QString &n,
}
QString name = attributes["name"];
- bool added = false;
- if (!name.isEmpty() && m_database->supportedApiVersion(since)) {
- added = true;
+ if (!name.isEmpty() && m_database->supportedApiVersion(since))
m_currentEnum->addEnumValueRejection(name);
- }
} break;
case StackElement::ReplaceType: {