1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-11 23:54:18 +00:00

Fixed a couple of base-class copying typos and prevented copying of ReferenceCountedObject bases.

This commit is contained in:
jules 2013-03-08 15:13:07 +00:00
parent d046e30b25
commit 136041daa7
4 changed files with 10 additions and 6 deletions

View file

@ -28,13 +28,13 @@ class ValueTree::SharedObject : public ReferenceCountedObject
public:
typedef ReferenceCountedObjectPtr<SharedObject> Ptr;
explicit SharedObject (const Identifier& type_) noexcept
: type (type_), parent (nullptr)
explicit SharedObject (const Identifier& t) noexcept
: type (t), parent (nullptr)
{
}
SharedObject (const SharedObject& other)
: ReferenceCountedObject (other),
: ReferenceCountedObject(),
type (other.type), properties (other.properties), parent (nullptr)
{
for (int i = 0; i < other.children.size(); ++i)