third argument should be SfxFilterFlags

Change-Id: Id0a73ffbbddc7fd2b2190cc04f59769561f45dd0
This commit is contained in:
Caolán McNamara
2014-11-17 10:41:32 +00:00
parent 639f6dcb1f
commit 60b3d8119c
3 changed files with 3 additions and 3 deletions

View File

@@ -1017,7 +1017,7 @@ void InsertFile(SwUnoCrsr* pUnoCrsr, const OUString& rURL,
pMed->GetItemSet()->Put( SfxStringItem( SID_DOC_BASEURL, sBaseURL ) );
SfxFilterMatcher aMatcher( rFact.GetFilterContainer()->GetName() );
ErrCode nErr = aMatcher.GuessFilter( *pMed, &pFilter, sal_False );
ErrCode nErr = aMatcher.GuessFilter(*pMed, &pFilter, SFX_FILTER_VERSION_NONE);
if ( nErr || !pFilter)
DELETEZ(pMed);
else

View File

@@ -729,7 +729,7 @@ bool SwGlossaryHdl::ImportGlossaries( const OUString& rName )
boost::scoped_ptr<SfxMedium> pMed(new SfxMedium( rName, STREAM_READ, 0, 0 ));
SfxFilterMatcher aMatcher( OUString("swriter") );
pMed->UseInteractionHandler( true );
if( !aMatcher.GuessFilter( *pMed, &pFilter, sal_False ) )
if (!aMatcher.GuessFilter(*pMed, &pFilter, SFX_FILTER_VERSION_NONE))
{
SwTextBlocks *pGlossary = NULL;
pMed->SetFilter( pFilter );

View File

@@ -2132,7 +2132,7 @@ long SwView::InsertDoc( sal_uInt16 nSlotId, const OUString& rFileName, const OUS
pMed = new SfxMedium(rFileName, STREAM_READ, 0, 0 );
SfxFilterMatcher aMatcher( rFact.GetFilterContainer()->GetName() );
pMed->UseInteractionHandler( true );
ErrCode nErr = aMatcher.GuessFilter( *pMed, &pFilter, sal_False );
ErrCode nErr = aMatcher.GuessFilter(*pMed, &pFilter, SFX_FILTER_VERSION_NONE);
if ( nErr )
DELETEZ(pMed);
else