summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/location/places/qplaceattribute.cpp12
-rw-r--r--src/location/places/qplaceattribute_p.h8
2 files changed, 1 insertions, 19 deletions
diff --git a/src/location/places/qplaceattribute.cpp b/src/location/places/qplaceattribute.cpp
index 495fcd1c..83b39617 100644
--- a/src/location/places/qplaceattribute.cpp
+++ b/src/location/places/qplaceattribute.cpp
@@ -44,18 +44,6 @@ QT_USE_NAMESPACE
QT_DEFINE_QSDP_SPECIALIZATION_DTOR(QPlaceAttributePrivate)
-template<> QPlaceAttributePrivate *QSharedDataPointer<QPlaceAttributePrivate>::clone()
-{
- return d->clone();
-}
-
-QPlaceAttributePrivate::QPlaceAttributePrivate(const QPlaceAttributePrivate &other)
- : QSharedData(other),
- label(other.label),
- text(other.text)
-{
-}
-
bool QPlaceAttributePrivate::operator== (const QPlaceAttributePrivate &other) const
{
return label == other.label
diff --git a/src/location/places/qplaceattribute_p.h b/src/location/places/qplaceattribute_p.h
index b1d576c0..849ef29f 100644
--- a/src/location/places/qplaceattribute_p.h
+++ b/src/location/places/qplaceattribute_p.h
@@ -61,11 +61,7 @@ QT_BEGIN_NAMESPACE
class QPlaceAttributePrivate : public QSharedData
{
public:
- QPlaceAttributePrivate(){}
- QPlaceAttributePrivate(const QPlaceAttributePrivate &other);
- virtual ~QPlaceAttributePrivate(){}
- virtual bool operator== (const QPlaceAttributePrivate &other) const;
- virtual QPlaceAttributePrivate *clone() const { return new QPlaceAttributePrivate(*this); }
+ bool operator== (const QPlaceAttributePrivate &other) const;
bool isEmpty() const;
@@ -73,8 +69,6 @@ public:
QString text;
};
-template<> QPlaceAttributePrivate *QSharedDataPointer<QPlaceAttributePrivate>::clone();
-
QT_END_NAMESPACE
#endif