diff options
author | Henrik Brautaset Aronsen <subsurface@henrik.synth.no> | 2013-06-18 14:29:35 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2013-06-18 07:12:40 -0700 |
commit | 9364436264638e639c7ef2eb642783fbee6f7ea4 (patch) | |
tree | 5a6a21b360e8fc03092a368bff9fd76800b71428 /qthelper.cpp | |
parent | 0773172f66ef3cd73a88e3297c8b5ae28cfe2a8f (diff) | |
download | subsurface-9364436264638e639c7ef2eb642783fbee6f7ea4.tar.gz |
Fix compilation error in DiveComputerList destructor on MacOSX
The compiler on MacOSX seems stricter than others:
qthelper.cpp: In destructor ‘DiveComputerList::~DiveComputerList()’:
qthelper.cpp:10: error: expected class-name before ‘(’ token
Fixed with help from http://stackoverflow.com/a/14777627/13365
Signed-off-by: Henrik Brautaset Aronsen <subsurface@henrik.synth.no>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qthelper.cpp')
-rw-r--r-- | qthelper.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/qthelper.cpp b/qthelper.cpp index 9c74a74cf..2384a317b 100644 --- a/qthelper.cpp +++ b/qthelper.cpp @@ -1,4 +1,5 @@ #include "qthelper.h" +#include <QMap> DiveComputerList::DiveComputerList() { @@ -7,7 +8,7 @@ DiveComputerList::DiveComputerList() DiveComputerList::~DiveComputerList() { - dcMap.~QMap(); + } bool DiveComputerNode::operator == (const DiveComputerNode &a) const { |