diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-04-23 10:27:40 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-04-24 14:50:21 +0200 |
commit | baa91c67d6fb7f84f94795e6e3727cd0b5b23061 (patch) | |
tree | a28cc45ce17bbbc579a672b47ac38b931324b0f7 /vcl/win | |
parent | 528a2e51bc5e9d3fd10a03603f4c07b271f0749b (diff) |
loplugin:useuniqueptr in OutputDevice
Change-Id: I6f933b54c11a4939870c3a788a4928f2d6f12850
Reviewed-on: https://gerrit.libreoffice.org/53349
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl/win')
-rw-r--r-- | vcl/win/gdi/salfont.cxx | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/vcl/win/gdi/salfont.cxx b/vcl/win/gdi/salfont.cxx index f6deaaf6b1e8..6fe84173c710 100644 --- a/vcl/win/gdi/salfont.cxx +++ b/vcl/win/gdi/salfont.cxx @@ -314,7 +314,7 @@ bool WinGlyphFallbackSubstititution::FindFontSubstitute( FontSelectPattern& rFon } // last level fallback, check each font type face one by one - ImplDeviceFontList* pTestFontList = pFontCollection->GetDeviceFontList(); + std::unique_ptr<ImplDeviceFontList> pTestFontList = pFontCollection->GetDeviceFontList(); // limit the count of fonts to be checked to prevent hangs static const int MAX_GFBFONT_COUNT = 600; int nTestFontCount = pTestFontList->Count(); @@ -332,8 +332,6 @@ bool WinGlyphFallbackSubstititution::FindFontSubstitute( FontSelectPattern& rFon break; } - delete pTestFontList; - return bFound; } |