[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: koffice/libs/kotext/styles
From: Thorsten Zachmann <t.zachmann () zagge ! de>
Date: 2010-06-20 4:20:18
Message-ID: 20100620042018.B9B8AAC8D9 () svn ! kde ! org
[Download RAW message or body]
SVN commit 1140183 by zachmann:
o Speed up loading of paragraph styles.
Using first
styleStack.hasProperty(KoXmlNS::fo, "text-align"))
to check if a property is there and after that
const QString textAlign(styleStack.property(KoXmlNS::fo, "text-align"))
to get the value iterates over the whole stack twice when the
attribute is found.
Just using the second method is enough as it will return an empty
QString when the attribute was not found.
In the case the attribute is there only one instead of two lookups is
done.
M +130 -114 KoParagraphStyle.cpp
http://websvn.kde.org/?view=rev&revision=1140183
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic