Fix iterator

svn path=/trunk/KDE/kdegraphics/okular/; revision=911252
This commit is contained in:
Laurent Montel 2009-01-15 07:50:24 +00:00
parent e76e7d1cd9
commit a35763b8fd

View file

@ -72,10 +72,10 @@ fontEncoding::fontEncoding(const QString &encName)
#endif
fileContent = fileContent.section('[', 1, 1).section(']',0,0).simplified();
QStringList glyphNameList = fileContent.split('/', QString::SkipEmptyParts);
const QStringList glyphNameList = fileContent.split('/', QString::SkipEmptyParts);
int i = 0;
for ( QStringList::Iterator it = glyphNameList.begin(); (it != glyphNameList.end())&&(i<256); ++it ) {
for ( QStringList::ConstIterator it = glyphNameList.constBegin(); (it != glyphNameList.constEnd())&&(i<256); ++it ) {
glyphNameVector[i] = (*it).simplified();
#ifdef DEBUG_FONTENC
kDebug(kvs::dvi) << i << ": " << glyphNameVector[i];