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>
This commit is contained in:
Anton Lundin 2013-12-05 00:48:38 +01:00 committed by Dirk Hohndel
parent a0df62d913
commit 28b8d177c3
2 changed files with 9 additions and 9 deletions

View file

@ -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();