From 0c4f2f8e62c484fc772656d8d3124cfee5dc1d7a Mon Sep 17 00:00:00 2001 From: Albert Astals Cid Date: Fri, 8 Feb 2019 23:07:56 +0100 Subject: [PATCH] add const, helps understand the function better --- src/imageformats/xcf.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/imageformats/xcf.cpp b/src/imageformats/xcf.cpp index 2328d4e..cdbcfba 100644 --- a/src/imageformats/xcf.cpp +++ b/src/imageformats/xcf.cpp @@ -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();