diff options
author | Anton Lundin <glance@acc.umu.se> | 2013-12-05 00:48:38 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2013-12-04 15:57:53 -0800 |
commit | 28b8d177c3b10d32201615d15c2aba2f969cf3f4 (patch) | |
tree | 3b168f3cb3f47de02cc5880ca7cfed0843b074d7 /qt-ui/printlayout.h | |
parent | a0df62d913a8bfc54aae0c7b69a3197bdfae3dd5 (diff) | |
download | subsurface-28b8d177c3b10d32201615d15c2aba2f969cf3f4.tar.gz |
Cleanup some uninitialized variables
I can't really see any point in passing a local loop variable around,
and copying a uninitialized pointer. Better use local variables there
and let the compiler optimize them away if it feels for doing that.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/printlayout.h')
-rw-r--r-- | qt-ui/printlayout.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/qt-ui/printlayout.h b/qt-ui/printlayout.h index f21940a83..077d7ac14 100644 --- a/qt-ui/printlayout.h +++ b/qt-ui/printlayout.h @@ -34,7 +34,7 @@ private: QList<unsigned int> profilePrintColumnWidths, profilePrintRowHeights; void setup(); - void estimateTotalDives(struct dive *dive, int *i, int *total) const; + int estimateTotalDives() const; void printProfileDives(int divesPerRow, int divesPerColumn); QTableView *createProfileTable(ProfilePrintModel *model, const int tableW); void printTable(); |