[Libreoffice-commits] core.git: sc/source

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Wed Sep 19 10:42:09 UTC 2018


 sc/source/ui/unoobj/servuno.cxx |    4 ++++
 1 file changed, 4 insertions(+)

New commits:
commit d48eb7255dad05c3baff5194dc3151683893d56c
Author:     Tor Lillqvist <tml at iki.fi>
AuthorDate: Wed Sep 19 13:37:47 2018 +0300
Commit:     Tor Lillqvist <tml at iki.fi>
CommitDate: Wed Sep 19 13:37:47 2018 +0300

    Avoid unused function in the !HAVE_FEATURE_SCRIPTING case
    
    Change-Id: I5ef5c1ce2be3de7390322a4f4f7b78a484fd7396

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;


More information about the Libreoffice-commits mailing list