mirror of
https://bitbucket.org/smil3y/katie.git
synced 2025-02-24 10:52:56 +00:00
use constant iterator in write_xpm_image()
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
f6799f1992
commit
ed14192d4f
1 changed files with 2 additions and 2 deletions
|
@ -1075,8 +1075,8 @@ static bool write_xpm_image(const QImage &sourceImage, QIODevice *device, const
|
|||
<< '\"' << w << ' ' << h << ' ' << ncolors << ' ' << cpp << '\"';
|
||||
|
||||
// write palette
|
||||
QMap<QRgb, int>::Iterator c = colorMap.begin();
|
||||
while (c != colorMap.end()) {
|
||||
QMap<QRgb, int>::const_iterator c = colorMap.constBegin();
|
||||
while (c != colorMap.constEnd()) {
|
||||
QRgb color = c.key();
|
||||
if (image.format() != QImage::Format_RGB32 && !qAlpha(color))
|
||||
line.sprintf("\"%s c None\"",
|
||||
|
|
Loading…
Add table
Reference in a new issue