Skip to content

Commit

Permalink
Qt5: 'static bool QPixmapCache::find(const QString&, QPixmap&)' is de…
Browse files Browse the repository at this point in the history
…precated: Use bool find(const QString &, QPixmap *) instead [-Wdeprecated-declarations]
  • Loading branch information
wwmayer committed Jun 12, 2020
1 parent eced6aa commit b143194
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Gui/ExpressionBinding.cpp
Expand Up @@ -158,7 +158,7 @@ QPixmap ExpressionBinding::getIcon(const char* name, const QSize& size) const
.arg(size.width())
.arg(size.height());
QPixmap icon;
if (QPixmapCache::find(key, icon))
if (QPixmapCache::find(key, &icon))
return icon;

icon = BitmapFactory().pixmapFromSvg(name, size);
Expand Down
2 changes: 1 addition & 1 deletion src/Gui/InputField.cpp
Expand Up @@ -145,7 +145,7 @@ QPixmap InputField::getValidationIcon(const char* name, const QSize& size) const
.arg(size.width())
.arg(size.height());
QPixmap icon;
if (QPixmapCache::find(key, icon))
if (QPixmapCache::find(key, &icon))
return icon;

icon = BitmapFactory().pixmapFromSvg(name, size);
Expand Down
2 changes: 1 addition & 1 deletion src/Mod/Sketcher/Gui/TaskSketcherConstrains.cpp
Expand Up @@ -380,7 +380,7 @@ class ExpressionDelegate : public QStyledItemDelegate
.arg(size.width())
.arg(size.height());
QPixmap icon;
if (QPixmapCache::find(key, icon))
if (QPixmapCache::find(key, &icon))
return icon;

icon = Gui::BitmapFactory().pixmapFromSvg(name, size);
Expand Down

0 comments on commit b143194

Please sign in to comment.