summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2013-02-22 10:00:42 +0000
committerCaolán McNamara <caolanm@redhat.com>2013-02-22 10:07:19 +0000
commit45739fad0b1d55e72cc1ed508b8ea33a74219290 (patch)
tree19f9387935a9bdb36ee644e0d739b05eee291c60
parent321bd3a06e3aa78f3223ef1aa7a0baac9176f83d (diff)
fix sfx2 build
Change-Id: I17b8ab426e7aabeb5db9d49391e0c1be99e63a51
-rw-r--r--sfx2/source/bastyp/fltfnc.cxx2
-rw-r--r--sfx2/source/doc/docfile.cxx10
2 files changed, 6 insertions, 6 deletions
diff --git a/sfx2/source/bastyp/fltfnc.cxx b/sfx2/source/bastyp/fltfnc.cxx
index 049823b7f2da..97dbaec47ab6 100644
--- a/sfx2/source/bastyp/fltfnc.cxx
+++ b/sfx2/source/bastyp/fltfnc.cxx
@@ -551,7 +551,7 @@ sal_uInt32 SfxFilterMatcher::DetectFilter( SfxMedium& rMedium, const SfxFilter**
sal_Bool bPreview = rMedium.IsPreview_Impl();
SFX_ITEMSET_ARG(rMedium.GetItemSet(), pReferer, SfxStringItem, SID_REFERER, sal_False);
- if ( bPreview && rMedium.IsRemote() && ( !pReferer || pReferer->GetValue().CompareToAscii("private:searchfolder:",21 ) != COMPARE_EQUAL ) )
+ if ( bPreview && rMedium.IsRemote() && ( !pReferer || !pReferer->GetValue().match("private:searchfolder:") ) )
return ERRCODE_ABORT;
ErrCode nErr = GuessFilter( rMedium, &pFilter );
diff --git a/sfx2/source/doc/docfile.cxx b/sfx2/source/doc/docfile.cxx
index d2f61648a613..0fc15a822ca5 100644
--- a/sfx2/source/doc/docfile.cxx
+++ b/sfx2/source/doc/docfile.cxx
@@ -1721,12 +1721,12 @@ sal_Bool SfxMedium::TryDirectTransfer( const ::rtl::OUString& aURL, SfxItemSet&
SFX_ITEMSET_ARG( &aTargetSet, pNewPassItem, SfxStringItem, SID_PASSWORD, false );
SFX_ITEMSET_ARG( GetItemSet(), pOldPassItem, SfxStringItem, SID_PASSWORD, false );
if ( ( !pNewPassItem && !pOldPassItem )
- || ( pNewPassItem && pOldPassItem && pNewPassItem->GetValue().Equals( pOldPassItem->GetValue() ) ) )
+ || ( pNewPassItem && pOldPassItem && pNewPassItem->GetValue() == pOldPassItem->GetValue() ) )
{
// the filter must be the same
SFX_ITEMSET_ARG( &aTargetSet, pNewFilterItem, SfxStringItem, SID_FILTER_NAME, false );
SFX_ITEMSET_ARG( GetItemSet(), pOldFilterItem, SfxStringItem, SID_FILTER_NAME, false );
- if ( pNewFilterItem && pOldFilterItem && pNewFilterItem->GetValue().Equals( pOldFilterItem->GetValue() ) )
+ if ( pNewFilterItem && pOldFilterItem && pNewFilterItem->GetValue() == pOldFilterItem->GetValue() )
{
// get the input stream and copy it
// in case of success return true
@@ -2459,7 +2459,7 @@ void SfxMedium::Init_Impl()
pImp->bDisposeStorage = false;
SFX_ITEMSET_ARG( pImp->m_pSet, pSalvageItem, SfxStringItem, SID_DOC_SALVAGE, false);
- if ( pSalvageItem && !pSalvageItem->GetValue().Len() )
+ if ( pSalvageItem && pSalvageItem->GetValue().isEmpty() )
{
pSalvageItem = NULL;
pImp->m_pSet->ClearItem( SID_DOC_SALVAGE );
@@ -2492,7 +2492,7 @@ void SfxMedium::Init_Impl()
}
}
- if ( pSalvageItem && pSalvageItem->GetValue().Len() )
+ if ( pSalvageItem && !pSalvageItem->GetValue().isEmpty() )
{
pImp->m_aLogicName = pSalvageItem->GetValue();
DELETEZ( pImp->m_pURLObj );
@@ -2894,7 +2894,7 @@ SfxMedium::SfxMedium( const ::com::sun::star::uno::Sequence< ::com::sun::star::b
if( pSalvageItem )
{
// QUESTION: there is some treatment of Salvage in Init_Impl; align!
- if ( pSalvageItem->GetValue().Len() )
+ if ( !pSalvageItem->GetValue().isEmpty() )
{
// if an URL is provided in SalvageItem that means that the FileName refers to a temporary file
// that must be copied here