From 9ecac3874d179b1d7aa6b45337001b1def06a9dd Mon Sep 17 00:00:00 2001 From: Tor Lillqvist Date: Tue, 21 Oct 2014 23:21:37 +0300 Subject: Replace DISABLE_SCRIPTING with HAVE_FEATURE_SCRIPTING Feature test macros that govern conditional compilation should be defined in config_*.h include files, not on the compilation command line. Change-Id: I40575a4762fd2564f10927b6f38a112dd9f9a3d7 --- sfx2/source/view/viewfrm.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sfx2/source/view/viewfrm.cxx') diff --git a/sfx2/source/view/viewfrm.cxx b/sfx2/source/view/viewfrm.cxx index b0c06b9aabd7..82e0e94bd36a 100644 --- a/sfx2/source/view/viewfrm.cxx +++ b/sfx2/source/view/viewfrm.cxx @@ -2594,7 +2594,7 @@ void CutLines( OUString& rStr, sal_Int32 nStartLine, sal_Int32 nLines, bool bEra */ void SfxViewFrame::AddDispatchMacroToBasic_Impl( const OUString& sMacro ) { -#ifdef DISABLE_SCRIPTING +#if !HAVE_FEATURE_SCRIPTING (void) sMacro; #else if ( sMacro.isEmpty() ) -- cgit