1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-02-06 04:00:08 +00:00

Minor cleanups.

This commit is contained in:
jules 2014-09-01 20:59:57 +01:00
parent a9ab93128c
commit 46dfd54d9a
3 changed files with 9 additions and 9 deletions

View file

@ -88,14 +88,14 @@ MemoryBlock& MemoryBlock::operator= (const MemoryBlock& other)
#if JUCE_COMPILER_SUPPORTS_MOVE_SEMANTICS
MemoryBlock::MemoryBlock (MemoryBlock&& other) noexcept
: data (static_cast <HeapBlock<char>&&> (other.data)),
: data (static_cast<HeapBlock<char>&&> (other.data)),
size (other.size)
{
}
MemoryBlock& MemoryBlock::operator= (MemoryBlock&& other) noexcept
{
data = static_cast <HeapBlock<char>&&> (other.data);
data = static_cast<HeapBlock<char>&&> (other.data);
size = other.size;
return *this;
}
@ -346,7 +346,7 @@ void MemoryBlock::loadFromHexString (StringRef hex)
if (c == 0)
{
setSize (static_cast <size_t> (dest - data));
setSize (static_cast<size_t> (dest - data));
return;
}
}

View file

@ -197,11 +197,11 @@ Image Image::getClippedImage (const Rectangle<int>& 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)
{
}

View file

@ -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:
//==============================================================================