diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2014-01-28 19:59:54 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2014-01-28 20:26:21 +0100 |
commit | 8bc3751ea3ce1162137df2d0e10502cd24a3cb92 (patch) | |
tree | 6e0a16a99e7e9c20bfdb97510da35df9af5256fa /sw/source/filter/basflt/iodetect.cxx | |
parent | 7dca2dd95b21df2b36c6a8e7e9edfb49dbd2acd1 (diff) |
bool improvements
Change-Id: Ibeb658e73b588f90242c95d23149f2ef45a7a815
Diffstat (limited to 'sw/source/filter/basflt/iodetect.cxx')
-rw-r--r-- | sw/source/filter/basflt/iodetect.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sw/source/filter/basflt/iodetect.cxx b/sw/source/filter/basflt/iodetect.cxx index 0b95aabab2e4..2e3f72ecaf15 100644 --- a/sw/source/filter/basflt/iodetect.cxx +++ b/sw/source/filter/basflt/iodetect.cxx @@ -67,7 +67,7 @@ OUString SwIoDetect::IsReader(const sal_Char* pHeader, sal_uLong nLen_) const bool bRet = false; if ( sHTML == sName ) - bRet = HTMLParser::IsHTMLFormat( pHeader, sal_True, RTL_TEXTENCODING_DONTKNOW ); + bRet = HTMLParser::IsHTMLFormat( pHeader, true, RTL_TEXTENCODING_DONTKNOW ); else if ( FILTER_RTF == sName ) bRet = 0 == strncmp( "{\\rtf", pHeader, 5 ); else if ( sWW5 == sName ) @@ -214,7 +214,7 @@ sal_Bool SwIoSystem::IsFileFilter(SfxMedium& rMedium, const OUString& rFmtName) { SvStream* pStream = rMedium.GetInStream(); if ( pStream && SotStorage::IsStorageFile(pStream) ) - xStg = new SotStorage( pStream, sal_False ); + xStg = new SotStorage( pStream, false ); } SfxFilterMatcher aMatcher( rFltContainer.GetName() ); @@ -333,7 +333,7 @@ const SfxFilter* SwIoSystem::GetFileFilter(const OUString& rFileName, { SvStream* pStream = pMedium->GetInStream(); if ( pStream && SotStorage::IsStorageFile(pStream) ) - xStg = new SotStorage( pStream, sal_False ); + xStg = new SotStorage( pStream, false ); if( xStg.Is() && ( xStg->GetError() == SVSTREAM_OK ) ) { @@ -510,7 +510,7 @@ bool SwIoSystem::IsDetectableText(const sal_Char* pBuf, sal_uLong &rLen, { case 0x0: if( nCnt + 1 < rLen && !*(pBuf+1) ) - return 0; + return false; bIsBareUnicode = true; break; case 0xA: |