1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

Fixed a typo in the introjucer. C++0x fixes.

This commit is contained in:
Julian Storer 2011-08-22 16:40:37 +01:00
parent ffc2f5d40e
commit d55b7419ec
14 changed files with 83 additions and 43 deletions

View file

@ -47,6 +47,19 @@ RectangleList& RectangleList::operator= (const RectangleList& other)
return *this;
}
#if JUCE_COMPILER_SUPPORTS_MOVE_SEMANTICS
RectangleList::RectangleList (RectangleList&& other) noexcept
: rects (static_cast <Array <Rectangle<int> >&&> (other.rects))
{
}
RectangleList& RectangleList::operator= (RectangleList&& other) noexcept
{
rects = static_cast <Array <Rectangle<int> >&&> (other.rects);
return *this;
}
#endif
RectangleList::~RectangleList()
{
}

View file

@ -56,6 +56,11 @@ public:
/** Copies this list from another one. */
RectangleList& operator= (const RectangleList& other);
#if JUCE_COMPILER_SUPPORTS_MOVE_SEMANTICS
RectangleList (RectangleList&& other) noexcept;
RectangleList& operator= (RectangleList&& other) noexcept;
#endif
/** Destructor. */
~RectangleList();