From 9d29d3dad4e944182b2fad6e58bd1cd02aa0a8fd Mon Sep 17 00:00:00 2001 From: Tor Lillqvist Date: Tue, 14 Feb 2017 20:32:18 +0200 Subject: BOOST_SPIRIT_SINGLE_GRAMMAR_INSTANCE has been defined forever in these files Change-Id: I0afa1b404192f44540aa318e748452e0328fac6b --- slideshow/source/engine/smilfunctionparser.cxx | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) (limited to 'slideshow/source') diff --git a/slideshow/source/engine/smilfunctionparser.cxx b/slideshow/source/engine/smilfunctionparser.cxx index 8cfea83efc17..f2ca8c3bc024 100644 --- a/slideshow/source/engine/smilfunctionparser.cxx +++ b/slideshow/source/engine/smilfunctionparser.cxx @@ -35,6 +35,7 @@ // But watch out, the parser might have // state not visible to this code! #define BOOST_SPIRIT_SINGLE_GRAMMAR_INSTANCE + #if defined(DBG_UTIL) #include #define BOOST_SPIRIT_DEBUG @@ -511,7 +512,6 @@ namespace slideshow ParserContextSharedPtr mpParserContext; // might get modified during parsing }; -#ifdef BOOST_SPIRIT_SINGLE_GRAMMAR_INSTANCE const ParserContextSharedPtr& getParserContext() { static ParserContextSharedPtr lcl_parserContext( new ParserContext() ); @@ -523,7 +523,6 @@ namespace slideshow return lcl_parserContext; } -#endif } std::shared_ptr SmilFunctionParser::parseSmilValue( const OUString& rSmilValue, @@ -540,13 +539,9 @@ namespace slideshow ParserContextSharedPtr pContext; -#ifdef BOOST_SPIRIT_SINGLE_GRAMMAR_INSTANCE // static parser context, because the actual // Spirit parser is also a static object pContext = getParserContext(); -#else - pContext.reset( new ParserContext() ); -#endif pContext->maShapeBounds = rRelativeShapeBounds; pContext->mbParseAnimationFunction = false; // parse with '$' disabled @@ -589,13 +584,9 @@ namespace slideshow ParserContextSharedPtr pContext; -#ifdef BOOST_SPIRIT_SINGLE_GRAMMAR_INSTANCE // static parser context, because the actual // Spirit parser is also a static object pContext = getParserContext(); -#else - pContext.reset( new ParserContext() ); -#endif pContext->maShapeBounds = rRelativeShapeBounds; pContext->mbParseAnimationFunction = true; // parse with '$' enabled -- cgit