Changeset View
Changeset View
Standalone View
Standalone View
core/generator_p.cpp
Show First 20 Lines • Show All 160 Lines • ▼ Show 20 Line(s) | |||||
161 | { | 161 | { | ||
162 | mGoOn = false; | 162 | mGoOn = false; | ||
163 | } | 163 | } | ||
164 | 164 | | |||
165 | void FontExtractionThread::run() | 165 | void FontExtractionThread::run() | ||
166 | { | 166 | { | ||
167 | for ( int i = -1; i < mNumOfPages && mGoOn; ++i ) | 167 | for ( int i = -1; i < mNumOfPages && mGoOn; ++i ) | ||
168 | { | 168 | { | ||
169 | FontInfo::List list = mGenerator->fontsForPage( i ); | 169 | const FontInfo::List list = mGenerator->fontsForPage( i ); | ||
170 | foreach ( const FontInfo& fi, list ) | 170 | for ( const FontInfo &fi : list ) | ||
171 | { | 171 | { | ||
172 | emit gotFont( fi ); | 172 | emit gotFont( fi ); | ||
173 | } | 173 | } | ||
174 | emit progress( i ); | 174 | emit progress( i ); | ||
175 | } | 175 | } | ||
176 | } | 176 | } | ||
177 | 177 | | |||
178 | #include "moc_generator_p.cpp" | 178 | #include "moc_generator_p.cpp" |