Make VectorBoolElements static properties const.
The elements should not be changeable. Change-Id: I108cb42b1237cd61c4d8f2fbe13305fbbf4ef311 Reviewed-by: Stephen Kelly <stephen.kelly@kdab.com>bb10
parent
179fefe8d2
commit
8ded0a324d
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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<>
|
||||
|
|
|
|||
Loading…
Reference in New Issue