add const, helps understand the function better

This commit is contained in:
Albert Astals Cid 2019-02-08 23:07:56 +01:00
parent 4a8da73f0e
commit 0c4f2f8e62

View File

@ -901,7 +901,7 @@ void XCFImageFormat::setPalette(XCFImage &xcf_image, QImage &image)
void XCFImageFormat::assignImageBytes(Layer &layer, uint i, uint j)
{
QImage &image = layer.image_tiles[j][i];
uchar *tile = layer.tile;
const uchar *tile = layer.tile;
const int width = image.width();
const int height = image.height();
const int bytesPerLine = image.bytesPerLine();