summaryrefslogtreecommitdiff
path: root/sw/source/ui/fldui/fldtdlg.cxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2021-09-24 12:46:21 +0100
committerCaolán McNamara <caolanm@redhat.com>2021-09-24 15:26:21 +0200
commit78cee244be863a14dfc76e4540b21dd08dba5e5a (patch)
tree8d8b053459db61b44793b62d34f3f241e9787486 /sw/source/ui/fldui/fldtdlg.cxx
parentb0886a4dc7e5a34ab3ee302b6ad6c30c0ce6a0af (diff)
make it possible to build required database stuff for fuzzing
The dbase filter requires dbaccess and connectivity but I don't want to pull in the rest of the stuff that --disable-database-connectivity currently disables that we still don't need for fuzzing if --disable-database-connectivity is removed Change-Id: Ia48d42295f9724b4dd2d3beb8e46ed23fc789f5c Reviewed-on: https://gerrit.libreoffice.org/c/core/+/122579 Tested-by: Caolán McNamara <caolanm@redhat.com> Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sw/source/ui/fldui/fldtdlg.cxx')
-rw-r--r--sw/source/ui/fldui/fldtdlg.cxx7
1 files changed, 4 insertions, 3 deletions
diff --git a/sw/source/ui/fldui/fldtdlg.cxx b/sw/source/ui/fldui/fldtdlg.cxx
index 150304bd508c..946de356075e 100644
--- a/sw/source/ui/fldui/fldtdlg.cxx
+++ b/sw/source/ui/fldui/fldtdlg.cxx
@@ -18,6 +18,7 @@
*/
#include <config_features.h>
+#include <config_fuzzers.h>
#include <cmdid.h>
#include <unotools/confignode.hxx>
@@ -74,7 +75,7 @@ SwFieldDlg::SwFieldDlg(SfxBindings* pB, SwChildWinWrapper* pCW, weld::Window *pP
-1,
utl::OConfigurationTreeRoot::CM_READONLY);
-#if HAVE_FEATURE_DBCONNECTIVITY
+#if HAVE_FEATURE_DBCONNECTIVITY && !ENABLE_FUZZERS
bool bDatabaseFields = true;
aCfgRoot.getNodeValue(
OUString("DatabaseFields")) >>= bDatabaseFields;
@@ -244,7 +245,7 @@ void SwFieldDlg::InsertHdl()
void SwFieldDlg::ActivateDatabasePage()
{
-#if HAVE_FEATURE_DBCONNECTIVITY
+#if HAVE_FEATURE_DBCONNECTIVITY && !ENABLE_FUZZERS
m_bDataBaseMode = true;
ShowPage("database");
SfxTabPage* pDBPage = GetTabPage("database");
@@ -268,7 +269,7 @@ void SwFieldDlg::ShowReferencePage()
void SwFieldDlg::PageCreated(const OString& rId, SfxTabPage& rPage)
{
-#if HAVE_FEATURE_DBCONNECTIVITY
+#if HAVE_FEATURE_DBCONNECTIVITY && !ENABLE_FUZZERS
if (rId != "database")
return;