diff options
author | Lubomir I. Ivanov <neolit123@gmail.com> | 2014-03-10 13:43:44 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-03-10 09:02:01 -0700 |
commit | 7d9849cfed6da3d00366b849456194c6ade66a70 (patch) | |
tree | 2ea5ab046a2ad9032626b9aa0d968eb9594372f3 /qt-ui | |
parent | 0325b267ee540c4b3ea2103bdfe54e43029556bc (diff) | |
download | subsurface-7d9849cfed6da3d00366b849456194c6ade66a70.tar.gz |
Profile2: use an implicit initializer for a struct array
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/profile/diveprofileitem.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/qt-ui/profile/diveprofileitem.cpp b/qt-ui/profile/diveprofileitem.cpp index 454fab0c9..b84f2928d 100644 --- a/qt-ui/profile/diveprofileitem.cpp +++ b/qt-ui/profile/diveprofileitem.cpp @@ -229,7 +229,7 @@ void DiveHeartrateItem::modelDataChanged(const QModelIndex &topLeft, const QMode struct { int sec; int hr; - } hist[3] = { 0 }; + } hist[3] = {}; // We don't have enougth data to calculate things, quit. if (!shouldCalculateStuff(topLeft, bottomRight)) |