From d29bdd1438f0d0ca00a97cc194928d38eec20012 Mon Sep 17 00:00:00 2001 From: mfreiholz Date: Fri, 1 Apr 2016 09:57:52 +0200 Subject: [PATCH] Fixes "const" usage --- AdvancedDockingSystem/include/ads/Serialization.h | 2 +- AdvancedDockingSystem/src/Serialization.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/AdvancedDockingSystem/include/ads/Serialization.h b/AdvancedDockingSystem/include/ads/Serialization.h index 10d93c3..9189c80 100644 --- a/AdvancedDockingSystem/include/ads/Serialization.h +++ b/AdvancedDockingSystem/include/ads/Serialization.h @@ -146,7 +146,7 @@ class InMemoryReader public: InMemoryReader(const QByteArray& data); bool initReadHeader(); - bool read(OffsetsHeaderEntry::Type type, QByteArray &data) const; + bool read(OffsetsHeaderEntry::Type type, QByteArray &data); private: QByteArray _data; diff --git a/AdvancedDockingSystem/src/Serialization.cpp b/AdvancedDockingSystem/src/Serialization.cpp index 49d2d1e..12b76de 100644 --- a/AdvancedDockingSystem/src/Serialization.cpp +++ b/AdvancedDockingSystem/src/Serialization.cpp @@ -388,7 +388,7 @@ bool InMemoryReader::initReadHeader() return !in.atEnd(); } -bool InMemoryReader::read(OffsetsHeaderEntry::Type type, QByteArray& data) const +bool InMemoryReader::read(OffsetsHeaderEntry::Type type, QByteArray& data) { // Find offset for "type". int index = -1;