diff --git a/modules/juce_core/memory/juce_MemoryBlock.cpp b/modules/juce_core/memory/juce_MemoryBlock.cpp index a827037135..6097c7e7e5 100644 --- a/modules/juce_core/memory/juce_MemoryBlock.cpp +++ b/modules/juce_core/memory/juce_MemoryBlock.cpp @@ -88,14 +88,14 @@ MemoryBlock& MemoryBlock::operator= (const MemoryBlock& other) #if JUCE_COMPILER_SUPPORTS_MOVE_SEMANTICS MemoryBlock::MemoryBlock (MemoryBlock&& other) noexcept - : data (static_cast &&> (other.data)), + : data (static_cast&&> (other.data)), size (other.size) { } MemoryBlock& MemoryBlock::operator= (MemoryBlock&& other) noexcept { - data = static_cast &&> (other.data); + data = static_cast&&> (other.data); size = other.size; return *this; } @@ -346,7 +346,7 @@ void MemoryBlock::loadFromHexString (StringRef hex) if (c == 0) { - setSize (static_cast (dest - data)); + setSize (static_cast (dest - data)); return; } } diff --git a/modules/juce_graphics/images/juce_Image.cpp b/modules/juce_graphics/images/juce_Image.cpp index d9aa0c4e55..e7be9a3f47 100644 --- a/modules/juce_graphics/images/juce_Image.cpp +++ b/modules/juce_graphics/images/juce_Image.cpp @@ -197,11 +197,11 @@ Image Image::getClippedImage (const Rectangle& area) const //============================================================================== -Image::Image() +Image::Image() noexcept { } -Image::Image (ImagePixelData* const instance) +Image::Image (ImagePixelData* const instance) noexcept : image (instance) { } @@ -216,7 +216,7 @@ Image::Image (const PixelFormat format, int width, int height, bool clearImage, { } -Image::Image (const Image& other) +Image::Image (const Image& other) noexcept : image (other.image) { } diff --git a/modules/juce_graphics/images/juce_Image.h b/modules/juce_graphics/images/juce_Image.h index 3580f9f2a4..0f67b4eefe 100644 --- a/modules/juce_graphics/images/juce_Image.h +++ b/modules/juce_graphics/images/juce_Image.h @@ -67,7 +67,7 @@ public: //============================================================================== /** Creates a null image. */ - Image(); + Image() noexcept; /** Creates an image with a specified size and format. @@ -106,7 +106,7 @@ public: point to the same shared image data. To make sure that an Image object has its own unique, unshared internal data, call duplicateIfShared(). */ - Image (const Image&); + Image (const Image&) noexcept; /** Makes this image refer to the same underlying image as another object. @@ -408,7 +408,7 @@ public: ImagePixelData* getPixelData() const noexcept { return image; } /** @internal */ - explicit Image (ImagePixelData*); + explicit Image (ImagePixelData*) noexcept; private: //==============================================================================