diff -r 56cd8111b7f7 -r 41300fa6a67c src/gui/text/qfontmetrics.h --- a/src/gui/text/qfontmetrics.h Tue Jan 26 12:42:25 2010 +0200 +++ b/src/gui/text/qfontmetrics.h Tue Feb 02 00:43:10 2010 +0200 @@ -43,6 +43,7 @@ #define QFONTMETRICS_H #include +#include #ifndef QT_INCLUDE_COMPAT #include #endif @@ -131,7 +132,7 @@ friend class QFontMetricsF; friend class QStackTextEngine; - QFontPrivate *d; + QExplicitlySharedDataPointer d; }; @@ -187,7 +188,7 @@ inline bool operator !=(const QFontMetricsF &other) const { return !operator==(other); } private: - QFontPrivate *d; + QExplicitlySharedDataPointer d; }; QT_END_NAMESPACE