From 9364436264638e639c7ef2eb642783fbee6f7ea4 Mon Sep 17 00:00:00 2001 From: Henrik Brautaset Aronsen Date: Tue, 18 Jun 2013 14:29:35 +0200 Subject: Fix compilation error in DiveComputerList destructor on MacOSX MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Signed-off-by: Dirk Hohndel --- qthelper.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 DiveComputerList::DiveComputerList() { @@ -7,7 +8,7 @@ DiveComputerList::DiveComputerList() DiveComputerList::~DiveComputerList() { - dcMap.~QMap(); + } bool DiveComputerNode::operator == (const DiveComputerNode &a) const { -- cgit v1.2.3-70-g09d2