Browse Source

Fixed an MSVC warning

tags/2021-05-28
jules 8 years ago
parent
commit
85d9a4cf90
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      modules/juce_core/memory/juce_ScopedPointer.h

+ 3
- 0
modules/juce_core/memory/juce_ScopedPointer.h View File

@@ -198,8 +198,11 @@ private:
ObjectType* object = nullptr; ObjectType* object = nullptr;
const ScopedPointer* getAddress() const noexcept { return this; } // Used internally to avoid the & operator const ScopedPointer* getAddress() const noexcept { return this; } // Used internally to avoid the & operator
#if ! JUCE_MSVC // (MSVC can't deal with multiple copy constructors)
ScopedPointer (const ScopedPointer&) = delete; ScopedPointer (const ScopedPointer&) = delete;
ScopedPointer& operator= (const ScopedPointer&) = delete; ScopedPointer& operator= (const ScopedPointer&) = delete;
#endif
}; };
//============================================================================== //==============================================================================


Loading…
Cancel
Save