summaryrefslogtreecommitdiffstats
path: root/src/designer/src/lib/shared/qdesigner_promotion.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/designer/src/lib/shared/qdesigner_promotion.cpp')
-rw-r--r--src/designer/src/lib/shared/qdesigner_promotion.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/designer/src/lib/shared/qdesigner_promotion.cpp b/src/designer/src/lib/shared/qdesigner_promotion.cpp
index 2d8169960..08b2848fd 100644
--- a/src/designer/src/lib/shared/qdesigner_promotion.cpp
+++ b/src/designer/src/lib/shared/qdesigner_promotion.cpp
@@ -48,7 +48,7 @@ namespace {
// Return a set of on-promotable classes
const QSet<QString> &nonPromotableClasses() {
static QSet<QString> rc;
- if (rc.empty()) {
+ if (rc.isEmpty()) {
rc.insert(QStringLiteral("Line"));
rc.insert(QStringLiteral("QAction"));
rc.insert(QStringLiteral("Spacer"));
@@ -225,7 +225,7 @@ namespace qdesigner_internal {
// convert map into list.
PromotedClasses rc;
- if (baseClassPromotedMap.empty())
+ if (baseClassPromotedMap.isEmpty())
return rc;
const BaseClassPromotedMap::const_iterator bcend = baseClassPromotedMap.constEnd();
@@ -262,7 +262,7 @@ namespace qdesigner_internal {
// check the scratchpad of the widget box
if (QDesignerWidgetBoxInterface *widgetBox = m_core->widgetBox()) {
const QStringList scratchPadClasses = getScratchPadClasses(widgetBox);
- if (!scratchPadClasses.empty()) {
+ if (!scratchPadClasses.isEmpty()) {
// Check whether these are actually promoted
QDesignerWidgetDataBaseInterface *widgetDataBase = m_core->widgetDataBase();
QStringList::const_iterator cend = scratchPadClasses.constEnd();