From 64236388e467dd149d285accdee74897a2a7c5a1 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Fri, 13 Jun 2014 07:11:06 -0700 Subject: Prevent using uninitialized variable numberOfPictures was be read before it is written. Signed-off-by: Dirk Hohndel --- qt-ui/divepicturewidget.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'qt-ui/divepicturewidget.cpp') diff --git a/qt-ui/divepicturewidget.cpp b/qt-ui/divepicturewidget.cpp index a5ca95c0f..bf76d1144 100644 --- a/qt-ui/divepicturewidget.cpp +++ b/qt-ui/divepicturewidget.cpp @@ -14,7 +14,7 @@ DivePictureModel *DivePictureModel::instance() return self; } -DivePictureModel::DivePictureModel() +DivePictureModel::DivePictureModel() : numberOfPictures(0) { } -- cgit v1.2.3-70-g09d2