summaryrefslogtreecommitdiffstats
path: root/sw/source/filter/basflt/iodetect.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source/filter/basflt/iodetect.cxx')
-rw-r--r--sw/source/filter/basflt/iodetect.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/sw/source/filter/basflt/iodetect.cxx b/sw/source/filter/basflt/iodetect.cxx
index cef4d239ab84..e9bb306c9310 100644
--- a/sw/source/filter/basflt/iodetect.cxx
+++ b/sw/source/filter/basflt/iodetect.cxx
@@ -92,10 +92,10 @@ bool SwIoSystem::IsValidStgFilter( const com::sun::star::uno::Reference < com::s
bool bRet = false;
try
{
- sal_uLong nStgFmtId = SotStorage::GetFormatID( rStg );
+ SotClipboardFormatId nStgFmtId = SotStorage::GetFormatID( rStg );
bRet = rStg->isStreamElement( OUString("content.xml") );
if ( bRet )
- bRet = ( nStgFmtId && ( rFilter.GetFormat() == nStgFmtId ) );
+ bRet = ( nStgFmtId != SotClipboardFormatId::NONE && ( rFilter.GetFormat() == nStgFmtId ) );
}
catch (const com::sun::star::uno::Exception& )
{
@@ -106,13 +106,13 @@ bool SwIoSystem::IsValidStgFilter( const com::sun::star::uno::Reference < com::s
bool SwIoSystem::IsValidStgFilter(SotStorage& rStg, const SfxFilter& rFilter)
{
- sal_uLong nStgFmtId = rStg.GetFormat();
+ SotClipboardFormatId nStgFmtId = rStg.GetFormat();
/*#i8409# We cannot trust the clipboard id anymore :-(*/
if (rFilter.GetUserData() == FILTER_WW8 || rFilter.GetUserData() == sWW6)
- nStgFmtId = 0;
+ nStgFmtId = SotClipboardFormatId::NONE;
bool bRet = SVSTREAM_OK == rStg.GetError() &&
- ( !nStgFmtId || rFilter.GetFormat() == nStgFmtId ) &&
+ ( nStgFmtId == SotClipboardFormatId::NONE || rFilter.GetFormat() == nStgFmtId ) &&
( rStg.IsContained( SwIoSystem::GetSubStorageName( rFilter )) );
if( bRet )
{