Make VectorBoolElements static properties const.

The elements should not be changeable.

Change-Id: I108cb42b1237cd61c4d8f2fbe13305fbbf4ef311
Reviewed-by: Stephen Kelly <stephen.kelly@kdab.com>
bb10
Jędrzej Nowacki 2014-06-19 16:06:15 +02:00
parent 179fefe8d2
commit 8ded0a324d
2 changed files with 4 additions and 4 deletions

View File

@ -2406,8 +2406,8 @@ const QMetaObject *metaObjectForQWidget()
}
namespace QtMetaTypePrivate {
bool VectorBoolElements::true_element = true;
bool VectorBoolElements::false_element = false;
const bool VectorBoolElements::true_element = true;
const bool VectorBoolElements::false_element = false;
}
QT_END_NAMESPACE

View File

@ -826,8 +826,8 @@ struct IteratorOwner : IteratorOwnerCommon<const_iterator>
struct Q_CORE_EXPORT VectorBoolElements
{
static bool true_element;
static bool false_element;
static const bool true_element;
static const bool false_element;
};
template<>