void QuaZipFilePrivate::setZipError(int zipError) const { QuaZipFilePrivate *fakeThis = const_cast<QuaZipFilePrivate*>(this); // non-const fakeThis->zipError=zipError; if(zipError==UNZ_OK) q->setErrorString(QString()); else q->setErrorString(QString("ZIP/UNZIP API error %1").arg(zipError)); }
void QuaZipFile::setZipError (int zipError) const { QuaZipFile *fakeThis = (QuaZipFile*) this; // non-const fakeThis->zipError = zipError; if(zipError == UNZ_OK) fakeThis->setErrorString (QString()); else fakeThis->setErrorString (tr ("ZIP/UNZIP API error %1").arg(zipError)); }