summaryrefslogtreecommitdiff
path: root/slideshow
diff options
context:
space:
mode:
authorMichaël Lefèvre <lefevre00@yahoo.fr>2014-03-31 21:32:47 +0200
committerDavid Tardon <dtardon@redhat.com>2014-04-05 03:47:34 -0500
commit22ab56f5e35dff58e1923b693dc33ff252293557 (patch)
tree8356adc53ab669db2b36227512bc82375ea15e4b /slideshow
parentcddbec75d402e260d6997ad69377346a8aa5774a (diff)
fdo#43157 : clean up OSL_DEBUG_ONLY
Change-Id: Ic92b64cfaec41bf4104cede5f26579d86543b9a8 Reviewed-on: https://gerrit.libreoffice.org/8804 Tested-by: David Tardon <dtardon@redhat.com> Reviewed-by: David Tardon <dtardon@redhat.com>
Diffstat (limited to 'slideshow')
-rw-r--r--slideshow/source/engine/smilfunctionparser.cxx9
1 files changed, 7 insertions, 2 deletions
diff --git a/slideshow/source/engine/smilfunctionparser.cxx b/slideshow/source/engine/smilfunctionparser.cxx
index 600818c1aba5..5b1922de91d0 100644
--- a/slideshow/source/engine/smilfunctionparser.cxx
+++ b/slideshow/source/engine/smilfunctionparser.cxx
@@ -564,7 +564,10 @@ namespace slideshow
aEnd,
aExpressionGrammer,
::boost::spirit::space_p ) );
- OSL_DEBUG_ONLY(::std::cout.flush()); // needed to keep stdout and cout in sync
+
+#if OSL_DEBUG_LEVEL > 0
+ ::std::cout.flush(); // needed to keep stdout and cout in sync
+#endif
// input fully congested by the parser?
if( !aParseInfo.full )
@@ -610,8 +613,10 @@ namespace slideshow
aEnd,
aExpressionGrammer >> ::boost::spirit::end_p,
::boost::spirit::space_p ) );
- OSL_DEBUG_ONLY(::std::cout.flush()); // needed to keep stdout and cout in sync
+#if OSL_DEBUG_LEVEL > 0
+ ::std::cout.flush(); // needed to keep stdout and cout in sync
+#endif
// input fully congested by the parser?
if( !aParseInfo.full )
throw ParseError( "SmilFunctionParser::parseSmilFunction(): string not fully parseable" );