mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Models: add the DiveItem::displayDate() helper
Add this helper so that we can easily wrap the required memory release after calling get_dive_date_string() (fixes a small memory leak). Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
This commit is contained in:
parent
adb7dc6fac
commit
127cd21137
2 changed files with 10 additions and 1 deletions
|
|
@ -142,6 +142,7 @@ struct DiveItem : public TreeItem {
|
|||
virtual QVariant data(int column, int role) const;
|
||||
struct dive* dive;
|
||||
|
||||
QString displayDate() const;
|
||||
QString displayDuration() const;
|
||||
QString displayDepth() const;
|
||||
QString displayTemperature() const;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue