editeng/source/editeng/impedit2.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit d8454627bd058a2d4166c4de3bd0572435c44178
Author:     Noel Grandin <noel.gran...@collabora.co.uk>
AuthorDate: Wed May 18 20:59:00 2022 +0200
Commit:     Noel Grandin <noel.gran...@collabora.co.uk>
CommitDate: Thu May 19 14:10:59 2022 +0200

    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.gran...@collabora.co.uk>

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

Reply via email to