I am writing my class that uses QPointF. I want to use implicit sharing:

Qt Code:
  1. class GeometryLineItemData : public QSharedData {
  2. public:
  3. GeometryLineItemData();
  4. GeometryLineItemData(const GeometryLineItemData &other);
  5. ~GeometryLineItemData();
  6.  
  7. QPointF p1;
  8. QPointF p2;
  9. };
To copy to clipboard, switch view to plain text mode 


My question is: Is it safe to use one class that uses implicit sharing in another implicitly shared class? Should I in copy constructor explicitly initialize points, or leave that like it is QT documentary written (although I think they were talking only about simple types)