OSDN Git Service

do not declare QPen as shared [ci reset]
authorIvailo Monev <xakepa10@gmail.com>
Mon, 29 Nov 2021 17:45:33 +0000 (19:45 +0200)
committerIvailo Monev <xakepa10@gmail.com>
Mon, 29 Nov 2021 17:45:33 +0000 (19:45 +0200)
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
src/gui/painting/qpen.cpp
src/gui/painting/qpen.h

index effe83f..7a40330 100644 (file)
@@ -786,19 +786,6 @@ bool QPen::operator==(const QPen &p) const
             && p.d->cosmetic == d->cosmetic);
 }
 
-
-/*!
-    \fn bool QPen::isDetached() const
-
-    \internal
-*/
-
-bool QPen::isDetached() const
-{
-    return d->ref == 1;
-}
-
-
 /*****************************************************************************
   QPen stream functions
  *****************************************************************************/
index b575e62..24a1512 100644 (file)
@@ -90,19 +90,13 @@ public:
     inline bool operator!=(const QPen &p) const { return !(operator==(p)); }
     operator QVariant() const;
 
-    bool isDetached() const;
 private:
     friend Q_GUI_EXPORT QDataStream &operator>>(QDataStream &, QPen &);
     friend Q_GUI_EXPORT QDataStream &operator<<(QDataStream &, const QPen &);
 
     QPenPrivate *d;
-
-public:
-    typedef QPenPrivate * DataPtr;
-    inline DataPtr &data_ptr() { return d; }
 };
 Q_DECLARE_TYPEINFO(QPen, Q_MOVABLE_TYPE);
-Q_DECLARE_SHARED(QPen)
 
 #ifndef QT_NO_DEBUG_STREAM
 Q_GUI_EXPORT QDebug operator<<(QDebug, const QPen &);