diff options
author | Jan-Marek Glogowski <glogow@fbihome.de> | 2021-05-19 12:16:42 +0200 |
---|---|---|
committer | Jan-Marek Glogowski <glogow@fbihome.de> | 2021-05-27 09:55:00 +0200 |
commit | f92855b1d0464451b761e59580bb78c883d8485e (patch) | |
tree | b1d758337f7f35c8c2cf4547e5bae715b0f13d4c /unotest/source/cpp/bootstrapfixturebase.cxx | |
parent | 0002015ae65cc5d6d6b29fe6a1a92bd03794b868 (diff) |
Fix --disable-scripting for DESKTOP build
Change-Id: I89938a17307a363f5de808200914940503312829
Diffstat (limited to 'unotest/source/cpp/bootstrapfixturebase.cxx')
-rw-r--r-- | unotest/source/cpp/bootstrapfixturebase.cxx | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/unotest/source/cpp/bootstrapfixturebase.cxx b/unotest/source/cpp/bootstrapfixturebase.cxx index 5c5b3bcc3a9c..348ecb796e85 100644 --- a/unotest/source/cpp/bootstrapfixturebase.cxx +++ b/unotest/source/cpp/bootstrapfixturebase.cxx @@ -8,10 +8,13 @@ */ #include <sal/config.h> +#include <config_features.h> #include <unotest/bootstrapfixturebase.hxx> #include <comphelper/processfactory.hxx> +#if HAVE_FEATURE_SCRIPTING #include <basic/sbstar.hxx> +#endif using namespace ::com::sun::star; @@ -30,6 +33,11 @@ void test::BootstrapFixtureBase::setUp() m_xSFactory.set(m_xFactory, uno::UNO_QUERY_THROW); } -void test::BootstrapFixtureBase::tearDown() { StarBASIC::DetachAllDocBasicItems(); } +void test::BootstrapFixtureBase::tearDown() +{ +#if HAVE_FEATURE_SCRIPTING + StarBASIC::DetachAllDocBasicItems() +#endif +} /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |