diff options
author | Harald Fernengel <harald@trolltech.com> | 2009-08-20 13:31:24 (GMT) |
---|---|---|
committer | Harald Fernengel <harald@trolltech.com> | 2009-08-20 15:09:51 (GMT) |
commit | 9af586d358f38817b62b621a40685aed4d9352b1 (patch) | |
tree | deb9c82f8f346166a47dafa4d9810703d41c73dd /src/corelib/global | |
parent | 2bd69c096dde32b2677448ca4feaf010cdf917c9 (diff) | |
download | Qt-9af586d358f38817b62b621a40685aed4d9352b1.zip Qt-9af586d358f38817b62b621a40685aed4d9352b1.tar.gz Qt-9af586d358f38817b62b621a40685aed4d9352b1.tar.bz2 |
Fix Q_DECLARE_SHARED macro
For some reason, gcc was not picking up the qSwap specialization.
Removing the explicit template call made it work.
Reviewed-by: Thiago
Diffstat (limited to 'src/corelib/global')
-rw-r--r-- | src/corelib/global/qglobal.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/corelib/global/qglobal.h b/src/corelib/global/qglobal.h index 6722418..7dbbc1b 100644 --- a/src/corelib/global/qglobal.h +++ b/src/corelib/global/qglobal.h @@ -2026,7 +2026,7 @@ inline void qSwap(T &value1, T &value2) template <> inline bool qIsDetached<TYPE>(TYPE &t) { return t.isDetached(); } \ template <> inline void qSwap<TYPE>(TYPE &value1, TYPE &value2) \ { \ - qSwap<TYPE::DataPtr>(value1.data_ptr(), value2.data_ptr()); \ + qSwap(value1.data_ptr(), value2.data_ptr()); \ } /* |