summaryrefslogtreecommitdiff
path: root/lyt/materials/chanctrl.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lyt/materials/chanctrl.cpp')
-rw-r--r--lyt/materials/chanctrl.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/lyt/materials/chanctrl.cpp b/lyt/materials/chanctrl.cpp
index 5f32e65..1e3f4f8 100644
--- a/lyt/materials/chanctrl.cpp
+++ b/lyt/materials/chanctrl.cpp
@@ -21,16 +21,16 @@
LYTChanCtrl::LYTChanCtrl() {
}
-void LYTChanCtrl::dumpToDebug() {
+void LYTChanCtrl::dumpToDebug() const {
qDebug() << "LYTChanCtrl @" << (void*)this;
qDebug() << "ColourMatSrc:" << colourMatSrc << "- AlphaMatSrc:" << alphaMatSrc;
}
-void LYTChanCtrl::writeToDataStream(QDataStream &out) {
+void LYTChanCtrl::writeToDataStream(QDataStream &out) const {
out << (quint8)colourMatSrc;
out << (quint8)alphaMatSrc;
- out.skipRawData(2); // padding
+ WritePadding(2, out);
}