summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorTor Lillqvist <tml@iki.fi>2018-09-19 13:37:47 +0300
committerTor Lillqvist <tml@iki.fi>2018-09-19 13:37:47 +0300
commitd48eb7255dad05c3baff5194dc3151683893d56c (patch)
treecacdf6b24734fd2c22a24c3befc0c5e347dcc823 /sc
parentb6fa941a62c1f301982732f4d7ec1b42f9330af0 (diff)
Avoid unused function in the !HAVE_FEATURE_SCRIPTING case
Change-Id: I5ef5c1ce2be3de7390322a4f4f7b78a484fd7396
Diffstat (limited to 'sc')
-rw-r--r--sc/source/ui/unoobj/servuno.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/sc/source/ui/unoobj/servuno.cxx b/sc/source/ui/unoobj/servuno.cxx
index d64abd57fb53..969c93dd69c9 100644
--- a/sc/source/ui/unoobj/servuno.cxx
+++ b/sc/source/ui/unoobj/servuno.cxx
@@ -71,6 +71,8 @@
using namespace ::com::sun::star;
+#if HAVE_FEATURE_SCRIPTING
+
static bool isInVBAMode( ScDocShell& rDocSh )
{
uno::Reference<script::XLibraryContainer> xLibContainer = rDocSh.GetBasicContainer();
@@ -80,6 +82,8 @@ static bool isInVBAMode( ScDocShell& rDocSh )
return false;
}
+#endif
+
class ScVbaObjectForCodeNameProvider : public ::cppu::WeakImplHelper< container::XNameAccess >
{
uno::Any maWorkbook;