diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-05-18 20:59:00 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-05-19 14:10:59 +0200 |
commit | d8454627bd058a2d4166c4de3bd0572435c44178 (patch) | |
tree | 755ecf6c326b429a041bd77ebc5b6cb24b07e5f7 /editeng | |
parent | 8901242b249dacd9fb154ec12628d73562d89f79 (diff) |
use the std::function type for this lambda to prevent allocation
other std::function will heap allocate
Change-Id: Ia1fdb20142613e757fbdc6a4e133b530c6cd3682
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/134599
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'editeng')
-rw-r--r-- | editeng/source/editeng/impedit2.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/editeng/source/editeng/impedit2.cxx b/editeng/source/editeng/impedit2.cxx index 1471b4f291c1..78a6c8d0e492 100644 --- a/editeng/source/editeng/impedit2.cxx +++ b/editeng/source/editeng/impedit2.cxx @@ -3486,7 +3486,7 @@ tools::Long ImpEditEngine::Calc1ColumnTextHeight(tools::Long* pHeightNTP) comphelper::ValueRestorationGuard aGuard(nCurTextHeight, std::numeric_limits<tools::Long>::max()); - auto FindLastLineBottom = [&](const LineAreaInfo& rInfo) { + IterateLinesAreasFunc FindLastLineBottom = [&](const LineAreaInfo& rInfo) { if (rInfo.pLine) { // bottom coordinate does not belong to area, so no need to do +1 |