Fix certain build configurations

...after 8849c1d9cc "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.bergmann@allotropia.de>
This commit is contained in:
Stephan Bergmann 2024-09-10 08:33:56 +02:00
parent bacaa3e524
commit e663655d04

View file

@ -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();