diff options
-rw-r--r-- | platform/qt/src/qmapboxgl.cpp | 2 | ||||
-rw-r--r-- | platform/qt/src/qt_image.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/platform/qt/src/qmapboxgl.cpp b/platform/qt/src/qmapboxgl.cpp index 09479581bb..094eaca5ac 100644 --- a/platform/qt/src/qmapboxgl.cpp +++ b/platform/qt/src/qmapboxgl.cpp @@ -136,7 +136,7 @@ std::unique_ptr<mbgl::style::Image> toStyleImage(const QString &id, const QImage .rgbSwapped() .convertToFormat(QImage::Format_ARGB32_Premultiplied); -#if QT_VERSION >= 0x051000 +#if QT_VERSION >= QT_VERSION_CHECK(5, 10, 0) auto img = std::make_unique<uint8_t[]>(swapped.sizeInBytes()); memcpy(img.get(), swapped.constBits(), swapped.sizeInBytes()); #else diff --git a/platform/qt/src/qt_image.cpp b/platform/qt/src/qt_image.cpp index a5c92514c1..8fff1e88b6 100644 --- a/platform/qt/src/qt_image.cpp +++ b/platform/qt/src/qt_image.cpp @@ -54,7 +54,7 @@ PremultipliedImage decodeImage(const std::string& string) { throw std::runtime_error("Unsupported image type"); } -#if QT_VERSION >= 0x051000 +#if QT_VERSION >= QT_VERSION_CHECK(5, 10, 0) auto img = std::make_unique<uint8_t[]>(image.sizeInBytes()); memcpy(img.get(), image.constBits(), image.sizeInBytes()); #else |