mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-01-16 15:03:42 -08:00
remove dependency on deprecated qt5 libraries for qt6 (#4692)
* remove dependency on deprecated qt5 libraries for qt6 removes the use of qt6-5compat for builds replaces use of QRegExp with QRegularExpression fixes incorrect usage of QRegExp removes use of QTextCodec fixes incorrect usage of QTextCodec sets qtlinguist as a required component for qt6 * fix anchoredPattern not existing in qt 5.11
This commit is contained in:
@@ -465,7 +465,7 @@ UnZip::ErrorCode UnzipPrivate::seekToCentralDirectory()
|
||||
quint16 commentLength = getUShort((const unsigned char*)buffer1, UNZIP_EOCD_OFF_COMMLEN + 4);
|
||||
if (commentLength != 0) {
|
||||
QByteArray c = device->read(commentLength);
|
||||
if (c.count() != commentLength)
|
||||
if (c.size() != commentLength)
|
||||
return UnZip::ReadFailed;
|
||||
|
||||
comment = c;
|
||||
|
||||
Reference in New Issue
Block a user