tdf#148806 fix build for !HAVE_FEATURE_SCRIPTING

I noticed this on one function, but completely
missed it on the second one.

Change-Id: I6ca74485b0c40cec2b04003fe894159198186ebf
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/141220
Tested-by: Jenkins
Reviewed-by: Justin Luth <jluth@mail.com>
diff --git a/filter/source/msfilter/msvbahelper.cxx b/filter/source/msfilter/msvbahelper.cxx
index a4e9545..59d34ca 100644
--- a/filter/source/msfilter/msvbahelper.cxx
+++ b/filter/source/msfilter/msvbahelper.cxx
@@ -270,6 +270,7 @@ OUString resolveVBAMacro(SfxObjectShell const* pShell, const OUString& rLibName,
    (void) rLibName;
    (void) rModuleName;
    (void) rMacroName;
    (void) bOnlyPublic;
#else
    if( pShell )
    {