I am currently integrating code from another stack-overflow question, that uncompresses data from a
QByteArray into an application.
Since we enabled all the compiler errors, we have to reinterpret_cast and const_cast the QByteArray::data():
strm.next_in = reinterpret_cast<Bytef *>(const_cast<char *>(data.data()));
Why would this input parameter be non-const? In my opinion, this suggests, that the data is somehow modified, which is definitely not what I want and also not what I believe is actually happening.