take opportunity to use const

Change-Id: Ief12d4b55e1705c758dae8078cf52948fcd9565b
Reviewed-by: Richard J. Moore <rich@kde.org>
bb10
Mark Brand 2012-03-12 21:14:37 +01:00 committed by Qt by Nokia
parent 6694181bb7
commit 1de1a50603
1 changed files with 2 additions and 2 deletions

View File

@ -2505,7 +2505,7 @@ void QStyleSheetStyle::setProperties(QWidget *w)
// properties in the order they are specified.
QHash<QString, QVariant> propertyHash;
QVector<QString> properties;
QVector<Declaration> decls = declarations(styleRules(w), QString());
const QVector<Declaration> decls = declarations(styleRules(w), QString());
// run through the declarations in order
for (int i = 0; i < decls.count(); i++) {
@ -2521,7 +2521,7 @@ void QStyleSheetStyle::setProperties(QWidget *w)
qWarning() << w << " does not have a property named " << property;
continue;
}
QMetaProperty metaProperty = metaObject->property(index);
const QMetaProperty metaProperty = metaObject->property(index);
if (!metaProperty.isWritable() || !metaProperty.isDesignable()) {
qWarning() << w << " cannot design property named " << property;
continue;