From 486920375bdd00ac47b44a770838e50071220b46 Mon Sep 17 00:00:00 2001 From: Thiago Macieira Date: Sat, 25 Jul 2009 12:07:27 +0200 Subject: Fix compilation with older GCC versions: need a constructor. I don't know exactly why this is needed, but otherwise GCC complains that there is no default constructor. --- src/corelib/tools/qsharedpointer_impl.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/corelib/tools/qsharedpointer_impl.h b/src/corelib/tools/qsharedpointer_impl.h index 2c9cd95..630ca4f 100644 --- a/src/corelib/tools/qsharedpointer_impl.h +++ b/src/corelib/tools/qsharedpointer_impl.h @@ -257,6 +257,11 @@ namespace QtSharedPointer { *ptr = &d->data; return d; } + + private: + // prevent construction and the emission of virtual symbols + ExternalRefCountWithContiguousData(); + ~ExternalRefCountWithContiguousData(); }; template -- cgit v0.12