-
Notifications
You must be signed in to change notification settings - Fork 631
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Made the project compatible with Qt 5.6 #109
base: master
Are you sure you want to change the base?
Conversation
@@ -48,7 +48,11 @@ ZipReader::~ZipReader() | |||
|
|||
void ZipReader::init() | |||
{ | |||
#if QT_VERSION >= 0x050600 | |||
QVector<QZipReader::FileInfo> allFiles = m_reader->fileInfoList(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You don't need to test QT_VERSION. fileInfoList() always returns QVector. It wouldn't be a bad idea to make this const.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you, mabrand.
- I don't think that fileInfoList always returns a QVector :
/usr/local/Qt-5.5.0/include/QtGui/5.5.0/QtGui/private/qzipreader_p.h
91: QList fileInfoList() const;
/usr/local/Qt-5.6.0/include/QtGui/5.6.0/QtGui/private/qzipreader_p.h
91: QVector fileInfoList() const; - It would indeed be a good idea to make this const.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, you're right about that. Somehow I overlooked that change.
As the author is not active any more, please submit your pull request to https://github.com/VSRonin/QtXlsxWriter I'll take care of maintaining code until the author is back |
Thank you. I will try to do that in the next few days. |
No description provided.