diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-07-21 08:47:42 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-07-22 10:15:49 +0200 |
commit | 88c85c8aa377ccc017582d8a08e5f73391b5a446 (patch) | |
tree | 62d133967cea1bcac6ab62780bf666adb5a7a867 /vcl/source/outdev/textline.cxx | |
parent | 0bac5c7e7d71658c5056c4bf0b71fbfb51b92ca0 (diff) |
flatten vcl::LazyDelete
we can allocate the stored value in-line and avoid some pointer-chasing
Change-Id: I828814b127923cdcec1bf57b3b64dffab4cffaaf
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/119298
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl/source/outdev/textline.cxx')
-rw-r--r-- | vcl/source/outdev/textline.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/source/outdev/textline.cxx b/vcl/source/outdev/textline.cxx index 8b22aa8fb847..7d78f30fe326 100644 --- a/vcl/source/outdev/textline.cxx +++ b/vcl/source/outdev/textline.cxx @@ -1067,7 +1067,7 @@ void OutputDevice::DrawWaveLine(const Point& rStartPos, const Point& rEndPos, to if ( fOrientation == 0.0 ) { - static vcl::DeleteOnDeinit< WavyLineCache > snLineCache( new WavyLineCache() ); + static vcl::DeleteOnDeinit< WavyLineCache > snLineCache {}; if ( !snLineCache.get() ) return; WavyLineCache& rLineCache = *snLineCache.get(); |