mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-02-05 03:50:07 +00:00
More ScopedPointer/unique_ptr compatibility work
This commit is contained in:
parent
48a5fbd333
commit
1a60fa9765
80 changed files with 404 additions and 368 deletions
|
|
@ -54,7 +54,7 @@ FillType::FillType (const Image& im, const AffineTransform& t) noexcept
|
|||
|
||||
FillType::FillType (const FillType& other)
|
||||
: colour (other.colour),
|
||||
gradient (other.gradient.createCopy()),
|
||||
gradient (createCopyIfNotNull (other.gradient.get())),
|
||||
image (other.image),
|
||||
transform (other.transform)
|
||||
{
|
||||
|
|
@ -65,7 +65,7 @@ FillType& FillType::operator= (const FillType& other)
|
|||
if (this != &other)
|
||||
{
|
||||
colour = other.colour;
|
||||
gradient.reset (other.gradient.createCopy());
|
||||
gradient.reset (createCopyIfNotNull (other.gradient.get()));
|
||||
image = other.image;
|
||||
transform = other.transform;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -2661,10 +2661,10 @@ public:
|
|||
|
||||
void initialise (StateObjectType* state)
|
||||
{
|
||||
currentState = state;
|
||||
currentState.reset (state);
|
||||
}
|
||||
|
||||
inline StateObjectType* operator->() const noexcept { return currentState; }
|
||||
inline StateObjectType* operator->() const noexcept { return currentState.get(); }
|
||||
inline StateObjectType& operator*() const noexcept { return *currentState; }
|
||||
|
||||
void save()
|
||||
|
|
@ -2693,7 +2693,7 @@ public:
|
|||
|
||||
void endTransparencyLayer()
|
||||
{
|
||||
const ScopedPointer<StateObjectType> finishedTransparencyLayer (currentState);
|
||||
ScopedPointer<StateObjectType> finishedTransparencyLayer (currentState.release());
|
||||
restore();
|
||||
currentState->endTransparencyLayer (*finishedTransparencyLayer);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue