X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=libs%2Fpbd%2Fpbd%2Fproperty_basics.h;h=2c35c4bbc2c7994b79472a71f46dce4888f74656;hb=3150041423a199189c9b6ab292a078c51d9670c2;hp=145e84abfcf04e148353dcf2ebdd11512b5f07aa;hpb=bce90b1802565f62288a5081929244d60e15a5bd;p=ardour.git diff --git a/libs/pbd/pbd/property_basics.h b/libs/pbd/pbd/property_basics.h index 145e84abfc..2c35c4bbc2 100644 --- a/libs/pbd/pbd/property_basics.h +++ b/libs/pbd/pbd/property_basics.h @@ -136,8 +136,15 @@ public: return _property_id == pid; } -protected: +protected: + /* copy construction only by subclasses */ + PropertyBase (PropertyBase const & b) + : _property_id (b._property_id) + {} + +private: PropertyID _property_id; + }; }