mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
Graphics: Use unique_ptr instead of raw pointers in RenderingHelpers
This commit is contained in:
parent
35d3fab960
commit
2712f63628
2 changed files with 6 additions and 6 deletions
|
|
@ -1797,9 +1797,9 @@ struct SavedState final : public RenderingHelpers::SavedStateBase<SavedState>
|
|||
previousTarget (createCopyIfNotNull (other.previousTarget.get()))
|
||||
{}
|
||||
|
||||
SavedState* beginTransparencyLayer (float opacity)
|
||||
std::unique_ptr<SavedState> beginTransparencyLayer (float opacity)
|
||||
{
|
||||
auto* s = new SavedState (*this);
|
||||
auto s = std::make_unique<SavedState> (*this);
|
||||
|
||||
if (clip != nullptr)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue