1
0
Fork 0
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:
reuk 2025-08-06 15:21:29 +01:00
parent 35d3fab960
commit 2712f63628
No known key found for this signature in database
2 changed files with 6 additions and 6 deletions

View file

@ -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)
{