sw/source/core/doc/docfld.cxx |    6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

New commits:
commit e663655d04b6f2d65722a83475bf4d997b4a4078
Author:     Stephan Bergmann <stephan.bergm...@allotropia.de>
AuthorDate: Tue Sep 10 08:33:56 2024 +0200
Commit:     Stephan Bergmann <stephan.bergm...@allotropia.de>
CommitDate: Tue Sep 10 14:42:32 2024 +0200

    Fix certain build configurations
    
    ...after 8849c1d9cc7fbf990b1e1633b59a09c818dabc72 "dont use 
GetItemSurrogates
    for gathering SwFormatField",
    
    > 
/home/tdf/lode/jenkins/workspace/lo_gerrit/tb/src_wasm/sw/source/core/doc/docfld.cxx:941:37:
 error: use of undeclared identifier 'bIsDBManager'
    >   941 |             [this, eGetMode, &rDoc, bIsDBManager] (const 
SwFormatField& rFormatField) -> bool
    >       |                                     ^
    
    (<https://ci.libreoffice.org/job/lo_daily_tb_linux_wasm/825/>)
    
    Change-Id: Ic6335797f68f082971e46535479ee8a9c44d6bc8
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/173119
    Tested-by: Jenkins
    Reviewed-by: Stephan Bergmann <stephan.bergm...@allotropia.de>

diff --git a/sw/source/core/doc/docfld.cxx b/sw/source/core/doc/docfld.cxx
index 45fda23a806a..eb4737575a71 100644
--- a/sw/source/core/doc/docfld.cxx
+++ b/sw/source/core/doc/docfld.cxx
@@ -938,7 +938,11 @@ void SwDocUpdateField::MakeFieldList_( SwDoc& rDoc, int 
eGetMode )
     for (const TypedWhichId<SwFormatField> & nWhichHint : { RES_TXTATR_FIELD, 
RES_TXTATR_INPUTFIELD })
     {
         rDoc.ForEachFormatField(nWhichHint,
-            [this, eGetMode, &rDoc, bIsDBManager] (const SwFormatField& 
rFormatField) -> bool
+            [this, eGetMode, &rDoc
+#if HAVE_FEATURE_DBCONNECTIVITY && !ENABLE_FUZZERS
+                                  , bIsDBManager
+#endif
+            ] (const SwFormatField& rFormatField) -> bool
             {
                 const SwTextField* pTextField = rFormatField.GetTextField();
 

Reply via email to