[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: koffice/libs/kotext/styles
From: David Faure <faure () kde ! org>
Date: 2010-08-15 21:08:54
Message-ID: 20100815210854.E0072AC854 () svn ! kde ! org
[Download RAW message or body]
SVN commit 1164093 by dfaure:
fix compilation with strict iterators
M +2 -2 KoCharacterStyle.cpp
--- trunk/koffice/libs/kotext/styles/KoCharacterStyle.cpp #1164092:1164093
@@ -116,8 +116,8 @@
void KoCharacterStyle::Private::ensureMinimalProperties(QTextCharFormat &format)
{
QMap<int, QVariant> props = hardCodedDefaultStyle.properties();
- QMap<int, QVariant>::const_iterator it = props.begin();
- while (it != props.end()) {
+ QMap<int, QVariant>::const_iterator it = props.constBegin();
+ while (it != props.constEnd()) {
if (!it.value().isNull() && !!format.hasProperty(it.key())) {
format.setProperty(it.key(), it.value());
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic