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/source/outdev/outdevstate.cxx | |
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/source/outdev/outdevstate.cxx')
-rw-r--r-- | vcl/source/outdev/outdevstate.cxx | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/vcl/source/outdev/outdevstate.cxx b/vcl/source/outdev/outdevstate.cxx index d2226add6f1b..6713f6481369 100644 --- a/vcl/source/outdev/outdevstate.cxx +++ b/vcl/source/outdev/outdevstate.cxx @@ -621,17 +621,8 @@ void OutputDevice::ImplReleaseFonts() mpFontInstance = nullptr; } - if ( mpDeviceFontList ) - { - delete mpDeviceFontList; - mpDeviceFontList = nullptr; - } - - if ( mpDeviceFontSizeList ) - { - delete mpDeviceFontSizeList; - mpDeviceFontSizeList = nullptr; - } + mpDeviceFontList.reset(); + mpDeviceFontSizeList.reset(); } |