summaryrefslogtreecommitdiffstats
path: root/qt-ui
diff options
context:
space:
mode:
authorGravatar Lubomir I. Ivanov <neolit123@gmail.com>2014-10-28 12:13:07 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-10-28 09:10:12 -0700
commit874754e22b8678ab3d5314c56fda860ea844fc55 (patch)
tree3a6fc21bc9474072ab9be3a91e6e6fc1c9053f91 /qt-ui
parent70a2e91f1cb41a09d9b3c4b67042416c52b3fe4a (diff)
downloadsubsurface-874754e22b8678ab3d5314c56fda860ea844fc55.tar.gz
dive.h: add a variant of FOR_EACH_PICTURE
This prevents a warning caused by -Waddress, that the address of 'displayed_dive' will always be defined. Exact macro variant suggested by Dirk. Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui')
-rw-r--r--qt-ui/divepicturewidget.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/qt-ui/divepicturewidget.cpp b/qt-ui/divepicturewidget.cpp
index 34f69e0ed..03c0321d4 100644
--- a/qt-ui/divepicturewidget.cpp
+++ b/qt-ui/divepicturewidget.cpp
@@ -51,7 +51,7 @@ void DivePictureModel::updateDivePictures()
stringPixmapCache.clear();
QStringList pictures;
- FOR_EACH_PICTURE (&displayed_dive) {
+ FOR_EACH_PICTURE_NON_PTR(displayed_dive) {
stringPixmapCache[QString(picture->filename)].offsetSeconds = picture->offset.seconds;
pictures.push_back(QString(picture->filename));
}