[PATCH 2/2] Profile2: use an implicit initializer for a struct array
Lubomir I. Ivanov
neolit123 at gmail.com
Mon Mar 10 04:43:44 PDT 2014
From: "Lubomir I. Ivanov" <neolit123 at gmail.com>
Signed-off-by: Lubomir I. Ivanov <neolit123 at gmail.com>
---
last warning from -Wall with 4.4.0.
---
qt-ui/profile/diveprofileitem.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/qt-ui/profile/diveprofileitem.cpp b/qt-ui/profile/diveprofileitem.cpp
index 454fab0..b84f292 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))
--
1.7.11.msysgit.0
More information about the subsurface
mailing list