aboutsummaryrefslogtreecommitdiffstats
path: root/sources
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2021-10-27 12:58:50 +0200
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2021-10-28 16:15:27 +0000
commit6c98706c5148f0b60aa92d9e63571309967fc2b4 (patch)
tree36a934436ad65e3159d944382565b4d5161eda34 /sources
parent70209f6768a26892cb5af2732001c174015da29e (diff)
shiboken6: Fix debug operator of AbstractMetaEnumValue
It should print the name always. Change-Id: Ie44382a2a8f7901a96f2901a4bb21b2ed22b7197 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io> (cherry picked from commit e8555cc435c0da9d72601447a5ed69a2a0180d47) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'sources')
-rw-r--r--sources/shiboken6/ApiExtractor/abstractmetaenum.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/sources/shiboken6/ApiExtractor/abstractmetaenum.cpp b/sources/shiboken6/ApiExtractor/abstractmetaenum.cpp
index ad64e58b9..336cd4f2a 100644
--- a/sources/shiboken6/ApiExtractor/abstractmetaenum.cpp
+++ b/sources/shiboken6/ApiExtractor/abstractmetaenum.cpp
@@ -264,10 +264,7 @@ void AbstractMetaEnum::setSigned(bool s)
static void formatMetaEnumValue(QDebug &d, const AbstractMetaEnumValue &v)
{
- const QString &name = v.stringValue();
- if (!name.isEmpty())
- d << name << '=';
- d << v.value();
+ d << v.name() << '=' << v.value();
}
QDebug operator<<(QDebug d, const AbstractMetaEnumValue &v)