summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--basic/source/uno/namecont.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/basic/source/uno/namecont.cxx b/basic/source/uno/namecont.cxx
index 1f1031ee75fc..8f663de41228 100644
--- a/basic/source/uno/namecont.cxx
+++ b/basic/source/uno/namecont.cxx
@@ -17,6 +17,8 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
+#include <config_features.h>
+
#include <com/sun/star/container/XNameContainer.hpp>
#include <com/sun/star/container/XContainer.hpp>
#include <com/sun/star/embed/ElementModes.hpp>
@@ -1258,6 +1260,7 @@ void SfxLibraryContainer::init_Impl( const OUString& rInitialDocumentURL,
void SfxLibraryContainer::implScanExtensions( void )
{
+#if HAVE_FEATURE_EXTENSIONS
ScriptExtensionIterator aScriptIt;
OUString aLibURL;
@@ -1297,6 +1300,7 @@ void SfxLibraryContainer::implScanExtensions( void )
const bool bReadOnly = false;
Reference< XNameAccess > xLib = createLibraryLink( aLibName, aIndexFileURL, bReadOnly );
}
+#endif
}
// Handle maLibInfoFileURL and maStorageURL correctly