projects
/
ardour.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
(Hopefully) clarify operator= and copy construction behaviour of the Property hierarc...
[ardour.git]
/
libs
/
pbd
/
pbd
/
property_basics.h
diff --git
a/libs/pbd/pbd/property_basics.h
b/libs/pbd/pbd/property_basics.h
index 145e84abfcf04e148353dcf2ebdd11512b5f07aa..2c35c4bbc2c7994b79472a71f46dce4888f74656 100644
(file)
--- 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;
+
};
}