diff options
author | Lubomir I. Ivanov <neolit123@gmail.com> | 2013-07-11 12:55:48 +0300 |
---|---|---|
committer | Lubomir I. Ivanov <neolit123@gmail.com> | 2013-07-11 12:55:48 +0300 |
commit | 3aae3ff5472d6deada4908fe599714ecdd7e6b61 (patch) | |
tree | e5d3ccf1fb6294952f074d00483807c29a3896c4 /qt-ui/printlayout.h | |
parent | a4982c93cd4481dd3d587f1d927121f026f61c50 (diff) | |
download | subsurface-3aae3ff5472d6deada4908fe599714ecdd7e6b61.tar.gz |
Print: mark some functions in PrintLayout as 'const'
It might be a good practice to declare certain class
'helper' functions as constant members. But I don't
think there are performance benefits to that other
than the readability ones.
Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
Diffstat (limited to 'qt-ui/printlayout.h')
-rw-r--r-- | qt-ui/printlayout.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/qt-ui/printlayout.h b/qt-ui/printlayout.h index c55778dd8..cbb1e42ac 100644 --- a/qt-ui/printlayout.h +++ b/qt-ui/printlayout.h @@ -27,13 +27,13 @@ private: QStringList tableColumnWidths; void setup(); - void printSixDives(); - void printTwoDives(); - void printTable(); - QString insertTableHeadingRow(); - QString insertTableHeadingCol(int); - QString insertTableDataRow(struct dive *); - QString insertTableDataCol(QString); + void printSixDives() const; + void printTwoDives() const; + void printTable() const; + QString insertTableHeadingRow() const; + QString insertTableHeadingCol(int) const; + QString insertTableDataRow(struct dive *) const; + QString insertTableDataCol(QString) const; }; #endif |