From 1de1a50603a50fde4b9ac0400a66f54ff4a0cbb1 Mon Sep 17 00:00:00 2001 From: Mark Brand Date: Mon, 12 Mar 2012 21:14:37 +0100 Subject: take opportunity to use const Change-Id: Ief12d4b55e1705c758dae8078cf52948fcd9565b Reviewed-by: Richard J. Moore --- src/widgets/styles/qstylesheetstyle.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/widgets/styles') diff --git a/src/widgets/styles/qstylesheetstyle.cpp b/src/widgets/styles/qstylesheetstyle.cpp index 7a0cc09452..c909def969 100644 --- a/src/widgets/styles/qstylesheetstyle.cpp +++ b/src/widgets/styles/qstylesheetstyle.cpp @@ -2505,7 +2505,7 @@ void QStyleSheetStyle::setProperties(QWidget *w) // properties in the order they are specified. QHash propertyHash; QVector properties; - QVector decls = declarations(styleRules(w), QString()); + const QVector 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; -- cgit v1.2.3