mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
Removed a superfluous base class inside SharedResourcePointer
This commit is contained in:
parent
238bca7420
commit
253fd51a96
1 changed files with 2 additions and 2 deletions
|
|
@ -126,7 +126,7 @@ public:
|
|||
int getReferenceCount() const noexcept { return getSharedObjectHolder().refCount; }
|
||||
|
||||
private:
|
||||
struct SharedObjectHolder : public ReferenceCountedObject
|
||||
struct SharedObjectHolder
|
||||
{
|
||||
SpinLock lock;
|
||||
ScopedPointer<SharedObjectType> sharedInstance;
|
||||
|
|
@ -154,7 +154,7 @@ private:
|
|||
|
||||
// There's no need to assign to a SharedResourcePointer because every
|
||||
// instance of the class is exactly the same!
|
||||
SharedResourcePointer& operator= (const SharedResourcePointer&) JUCE_DELETED_FUNCTION;
|
||||
SharedResourcePointer& operator= (const SharedResourcePointer&) = delete;
|
||||
|
||||
JUCE_LEAK_DETECTOR (SharedResourcePointer)
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue