diff options
Diffstat (limited to 'sfx2/source')
-rw-r--r-- | sfx2/source/appl/appuno.cxx | 2 | ||||
-rw-r--r-- | sfx2/source/control/statcach.cxx | 11 | ||||
-rw-r--r-- | sfx2/source/dialog/dinfdlg.cxx | 2 | ||||
-rw-r--r-- | sfx2/source/inc/fltoptint.hxx | 2 | ||||
-rw-r--r-- | sfx2/source/inc/statcach.hxx | 2 | ||||
-rw-r--r-- | sfx2/source/view/viewfrm.cxx | 2 |
6 files changed, 11 insertions, 10 deletions
diff --git a/sfx2/source/appl/appuno.cxx b/sfx2/source/appl/appuno.cxx index 3010f6efb95f..8f44b07b88f9 100644 --- a/sfx2/source/appl/appuno.cxx +++ b/sfx2/source/appl/appuno.cxx @@ -1675,7 +1675,7 @@ uno::Sequence< beans::PropertyValue > SAL_CALL RequestFilterOptions::RequestFilterOptions( uno::Reference< frame::XModel > rModel, - uno::Sequence< beans::PropertyValue > rProperties ) + const uno::Sequence< beans::PropertyValue >& rProperties ) { OUString temp; uno::Reference< uno::XInterface > temp2; diff --git a/sfx2/source/control/statcach.cxx b/sfx2/source/control/statcach.cxx index a21bfd88f75a..d69f34efd450 100644 --- a/sfx2/source/control/statcach.cxx +++ b/sfx2/source/control/statcach.cxx @@ -166,15 +166,16 @@ const ::com::sun::star::frame::FeatureStateEvent& BindDispatch_Impl::GetStatus() return aStatus; } -void BindDispatch_Impl::Dispatch( uno::Sequence < beans::PropertyValue > aProps, bool bForceSynchron ) +void BindDispatch_Impl::Dispatch( const uno::Sequence < beans::PropertyValue >& aProps, bool bForceSynchron ) { if ( xDisp.is() && aStatus.IsEnabled ) { sal_Int32 nLength = aProps.getLength(); - aProps.realloc(nLength+1); - aProps[nLength].Name = "SynchronMode"; - aProps[nLength].Value <<= bForceSynchron ; - xDisp->dispatch( aURL, aProps ); + uno::Sequence < beans::PropertyValue > aProps2 = aProps; + aProps2.realloc(nLength+1); + aProps2[nLength].Name = "SynchronMode"; + aProps2[nLength].Value <<= bForceSynchron ; + xDisp->dispatch( aURL, aProps2 ); } } diff --git a/sfx2/source/dialog/dinfdlg.cxx b/sfx2/source/dialog/dinfdlg.cxx index 1fe4ff8d256c..57a5f94e31f9 100644 --- a/sfx2/source/dialog/dinfdlg.cxx +++ b/sfx2/source/dialog/dinfdlg.cxx @@ -492,7 +492,7 @@ uno::Sequence< document::CmisProperty > SfxDocumentInfoItem::GetCmisProperties() return m_aCmisProperties; } -void SfxDocumentInfoItem::SetCmisProperties( Sequence< document::CmisProperty > cmisProps) +void SfxDocumentInfoItem::SetCmisProperties( const Sequence< document::CmisProperty >& cmisProps) { m_aCmisProperties = cmisProps; } diff --git a/sfx2/source/inc/fltoptint.hxx b/sfx2/source/inc/fltoptint.hxx index eafe21ab4a39..30f70011ae68 100644 --- a/sfx2/source/inc/fltoptint.hxx +++ b/sfx2/source/inc/fltoptint.hxx @@ -49,7 +49,7 @@ class RequestFilterOptions : public ::cppu::WeakImplHelper1< ::com::sun::star::t public: RequestFilterOptions( ::com::sun::star::uno::Reference< ::com::sun::star::frame::XModel > rModel, - ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue > rProperties ); + const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& rProperties ); bool isAbort() { return m_pAbort->wasSelected(); } diff --git a/sfx2/source/inc/statcach.hxx b/sfx2/source/inc/statcach.hxx index eb900ea00171..2e9757334862 100644 --- a/sfx2/source/inc/statcach.hxx +++ b/sfx2/source/inc/statcach.hxx @@ -56,7 +56,7 @@ public: void Release(); const ::com::sun::star::frame::FeatureStateEvent& GetStatus() const; - void Dispatch( com::sun::star::uno::Sequence < com::sun::star::beans::PropertyValue > aProps, bool bForceSynchron = false ); + void Dispatch( const com::sun::star::uno::Sequence < com::sun::star::beans::PropertyValue >& aProps, bool bForceSynchron = false ); }; class SfxStateCache diff --git a/sfx2/source/view/viewfrm.cxx b/sfx2/source/view/viewfrm.cxx index a32d88348844..84d0a711c2e7 100644 --- a/sfx2/source/view/viewfrm.cxx +++ b/sfx2/source/view/viewfrm.cxx @@ -172,7 +172,7 @@ namespace } -static bool AskPasswordToModify_Impl( const uno::Reference< task::XInteractionHandler >& xHandler, const OUString& aPath, const SfxFilter* pFilter, sal_uInt32 nPasswordHash, const uno::Sequence< beans::PropertyValue > aInfo ) +static bool AskPasswordToModify_Impl( const uno::Reference< task::XInteractionHandler >& xHandler, const OUString& aPath, const SfxFilter* pFilter, sal_uInt32 nPasswordHash, const uno::Sequence< beans::PropertyValue >& aInfo ) { // TODO/LATER: In future the info should replace the direct hash completely bool bResult = ( !nPasswordHash && !aInfo.getLength() ); |