Commit 53118141 authored by Nikita Melnichenko's avatar Nikita Melnichenko Committed by Davide Gianforte

improved robustness of QRESOURCE_ISCOMPRESSED macro

It could be used similar to a function call now, for example
!QRESOURCE_ISCOMPRESSED(x).
parent 7b525193
......@@ -51,7 +51,7 @@
* This can be removed when the qt minimum version required will be >= 5.13
*/
#if QT_VERSION >= QT_VERSION_CHECK(5, 15, 0)
#define QRESOURCE_ISCOMPRESSED(A) (A).compressionAlgorithm() != QResource::NoCompression
#define QRESOURCE_ISCOMPRESSED(A) ((A).compressionAlgorithm() != QResource::NoCompression)
#else
#define QRESOURCE_ISCOMPRESSED(A) (A).isCompressed()
#endif
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment