diff options
author | Rohan Kumar <rohankanojia420@gmail.com> | 2016-03-17 12:03:50 +0530 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2016-03-21 17:01:53 +0000 |
commit | 28aaa27438fb3a743792ce821ba1f523a5d9947f (patch) | |
tree | 2c36ac03b468cc484833a6c350616fdf96a3b96b /starmath/source/parse.cxx | |
parent | 3d952e795a2101d2bfd2c0dcd6047049c38e6f54 (diff) |
tdf#91794 remove OSL_DEBUG_LEVEL > 1 conditionals
I removed all the OSL_DEBUG_LEVEL > 1 conditionals and also
made SAL_WARN open to production code which was earlier under
OSL_DEBUG_LEVEL > 0
Change-Id: Ibe71defed9a7191ec8e4a934e746ef0f3ebd8b3a
Reviewed-on: https://gerrit.libreoffice.org/23065
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Tested-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'starmath/source/parse.cxx')
-rw-r--r-- | starmath/source/parse.cxx | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/starmath/source/parse.cxx b/starmath/source/parse.cxx index f5f5d91c1f4c..1540599b7520 100644 --- a/starmath/source/parse.cxx +++ b/starmath/source/parse.cxx @@ -311,7 +311,6 @@ const SmTokenTableEntry * SmParser::GetTokenTableEntry( const OUString &rName ) } -#if OSL_DEBUG_LEVEL > 1 static const sal_Unicode aDelimiterTable[] = { @@ -346,7 +345,6 @@ bool SmParser::IsDelimiter( const OUString &rTxt, sal_Int32 nPos ) return bIsDelim; } -#endif void SmParser::Replace( sal_Int32 nPos, sal_Int32 nLen, const OUString &rText ) { @@ -470,10 +468,7 @@ void SmParser::NextToken() m_aCurToken.nLevel = 5; m_aCurToken.aText = m_aBufferString.copy( nRealStart, n ); -#if OSL_DEBUG_LEVEL > 1 - if (!IsDelimiter( m_aBufferString, aRes.EndPos )) - SAL_WARN( "starmath", "identifier really finished? (compatibility!)" ); -#endif + SAL_WARN_IF( !IsDelimiter( m_aBufferString, aRes.EndPos ), "starmath", "identifier really finished? (compatibility!)" ); } else if (aRes.TokenType & KParseType::DOUBLE_QUOTE_STRING) { @@ -508,10 +503,7 @@ void SmParser::NextToken() m_aCurToken.nLevel = 5; m_aCurToken.aText = aName; -#if OSL_DEBUG_LEVEL > 1 - if (!IsDelimiter( m_aBufferString, aRes.EndPos )) - SAL_WARN( "starmath", "identifier really finished? (compatibility!)" ); -#endif + SAL_WARN_IF(!IsDelimiter(m_aBufferString, aRes.EndPos),"starmath", "identifier really finished? (compatibility!)"); } } else if (aRes.TokenType == 0 && '_' == m_aBufferString[ nRealStart ]) |