diff options
author | Thiago Macieira <thiago.macieira@nokia.com> | 2009-07-25 10:07:27 (GMT) |
---|---|---|
committer | Thiago Macieira <thiago.macieira@nokia.com> | 2009-07-25 10:09:10 (GMT) |
commit | 486920375bdd00ac47b44a770838e50071220b46 (patch) | |
tree | 1f874e01cc5651235f1177464dd8f7d03994799a /src/corelib/tools | |
parent | 4c12010fac555bce0a6c8d69a267a56f4c15087f (diff) | |
download | Qt-486920375bdd00ac47b44a770838e50071220b46.zip Qt-486920375bdd00ac47b44a770838e50071220b46.tar.gz Qt-486920375bdd00ac47b44a770838e50071220b46.tar.bz2 |
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.
Diffstat (limited to 'src/corelib/tools')
-rw-r--r-- | src/corelib/tools/qsharedpointer_impl.h | 5 |
1 files changed, 5 insertions, 0 deletions
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 <class T> |