From 9e7cf5c55c1c56692f4d306944357c28656312bd Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Sun, 29 Dec 2019 11:06:34 +0200 Subject: [PATCH] error: 'static bool QPixmapCache::find(const QString&, QPixmap&)' is deprecated: Use bool find(const QString &, QPixmap *) instead. --HG-- branch : develop --- src/libs/vlayout/vposter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libs/vlayout/vposter.cpp b/src/libs/vlayout/vposter.cpp index 7a640c0ef..217724c77 100644 --- a/src/libs/vlayout/vposter.cpp +++ b/src/libs/vlayout/vposter.cpp @@ -81,7 +81,7 @@ QPixmap WatermarkImageFromCache(const VWatermarkData &watermarkData, const QStri QPixmap pixmap; QString imagePath = AbsoluteMPath(watermarkPath, watermarkData.path); - if (not QPixmapCache::find(imagePath, pixmap)) + if (not QPixmapCache::find(imagePath, &pixmap)) { QImageReader imageReader(imagePath); QImage watermark = imageReader.read();