mirror of
https://github.com/aseprite/aseprite.git
synced 2025-04-09 18:44:46 +00:00
Minor change: Add const to some pointers in write_layer()
This commit is contained in:
parent
8fe88606c6
commit
daa7cc837a
@ -57,7 +57,7 @@ void write_layer(std::ostream& os, const Layer* layer)
|
|||||||
int images = 0;
|
int images = 0;
|
||||||
int celdatas = 0;
|
int celdatas = 0;
|
||||||
for (it=begin; it != end; ++it) {
|
for (it=begin; it != end; ++it) {
|
||||||
Cel* cel = *it;
|
const Cel* cel = *it;
|
||||||
if (!cel->link()) {
|
if (!cel->link()) {
|
||||||
++images;
|
++images;
|
||||||
++celdatas;
|
++celdatas;
|
||||||
@ -66,14 +66,14 @@ void write_layer(std::ostream& os, const Layer* layer)
|
|||||||
|
|
||||||
write16(os, images);
|
write16(os, images);
|
||||||
for (it=begin; it != end; ++it) {
|
for (it=begin; it != end; ++it) {
|
||||||
Cel* cel = *it;
|
const Cel* cel = *it;
|
||||||
if (!cel->link())
|
if (!cel->link())
|
||||||
write_image(os, cel->image());
|
write_image(os, cel->image());
|
||||||
}
|
}
|
||||||
|
|
||||||
write16(os, celdatas);
|
write16(os, celdatas);
|
||||||
for (it=begin; it != end; ++it) {
|
for (it=begin; it != end; ++it) {
|
||||||
Cel* cel = *it;
|
const Cel* cel = *it;
|
||||||
if (!cel->link())
|
if (!cel->link())
|
||||||
write_celdata(os, cel->dataRef().get());
|
write_celdata(os, cel->dataRef().get());
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user