Kaydet (Commit) 4c048677 authored tarafından Noel Grandin's avatar Noel Grandin

loplugin:constparams in forms

Change-Id: Iad55606361fedc7d7e87e8f4a3565413579b1f72
Reviewed-on: https://gerrit.libreoffice.org/40711Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarNoel Grandin <noel.grandin@collabora.co.uk>
üst 0ccf9683
......@@ -809,7 +809,7 @@ namespace frm
}
}
void OFilterControl::initControlModel(Reference< XPropertySet >& xControlModel)
void OFilterControl::initControlModel(Reference< XPropertySet > const & xControlModel)
{
#if !HAVE_FEATURE_DBCONNECTIVITY
(void) xControlModel;
......
......@@ -76,7 +76,7 @@ namespace frm
private:
void implInitFilterList();
void initControlModel(css::uno::Reference< css::beans::XPropertySet >& xControlModel);
void initControlModel(css::uno::Reference< css::beans::XPropertySet > const & xControlModel);
public:
explicit OFilterControl( const css::uno::Reference< css::uno::XComponentContext >& _rxORB );
......
......@@ -41,7 +41,7 @@ class ImgProdLockBytes : public SvLockBytes
public:
ImgProdLockBytes( SvStream* pStm, bool bOwner );
explicit ImgProdLockBytes( css::uno::Reference< css::io::XInputStream > & rStreamRef );
explicit ImgProdLockBytes( css::uno::Reference< css::io::XInputStream > const & rStreamRef );
virtual ErrCode ReadAt( sal_uInt64 nPos, void* pBuffer, std::size_t nCount, std::size_t * pRead ) const override;
virtual ErrCode WriteAt( sal_uInt64 nPos, const void* pBuffer, std::size_t nCount, std::size_t * pWritten ) override;
......@@ -57,7 +57,7 @@ ImgProdLockBytes::ImgProdLockBytes( SvStream* pStm, bool bOwner ) :
}
ImgProdLockBytes::ImgProdLockBytes( css::uno::Reference< css::io::XInputStream > & rStmRef ) :
ImgProdLockBytes::ImgProdLockBytes( css::uno::Reference< css::io::XInputStream > const & rStmRef ) :
xStmRef( rStmRef )
{
if( xStmRef.is() )
......@@ -233,7 +233,7 @@ void ImageProducer::SetImage( SvStream& rStm )
}
void ImageProducer::setImage( css::uno::Reference< css::io::XInputStream > & rInputStmRef )
void ImageProducer::setImage( css::uno::Reference< css::io::XInputStream > const & rInputStmRef )
{
maURL.clear();
mpGraphic->Clear();
......
......@@ -76,7 +76,7 @@ public:
void SAL_CALL release() throw() override { OWeakObject::release(); }
// MT: ???
void setImage( css::uno::Reference< css::io::XInputStream > & rStmRef );
void setImage( css::uno::Reference< css::io::XInputStream > const & rStmRef );
// css::awt::XImageProducer
void SAL_CALL addConsumer( const css::uno::Reference< css::awt::XImageConsumer >& rxConsumer ) override;
......
......@@ -567,7 +567,7 @@ namespace frm
namespace
{
SfxSlotId lcl_getSlotFromUnoName( SfxSlotPool& _rSlotPool, const OUString& _rUnoSlotName )
SfxSlotId lcl_getSlotFromUnoName( SfxSlotPool const & _rSlotPool, const OUString& _rUnoSlotName )
{
const SfxSlot* pSlot = _rSlotPool.GetUnoSlot( _rUnoSlotName );
if ( pSlot )
......
......@@ -833,7 +833,7 @@ void Binding::clear()
static void lcl_removeOtherNamespaces( const css::uno::Reference<css::container::XNameContainer>& xFrom,
css::uno::Reference<css::container::XNameContainer>& xTo )
css::uno::Reference<css::container::XNameContainer> const & xTo )
{
OSL_ENSURE( xFrom.is(), "no source" );
OSL_ENSURE( xTo.is(), "no target" );
......@@ -860,7 +860,7 @@ static void lcl_removeOtherNamespaces( const css::uno::Reference<css::container:
* false: use only elements from target
*/
static void lcl_copyNamespaces( const css::uno::Reference<css::container::XNameContainer>& xFrom,
css::uno::Reference<css::container::XNameContainer>& xTo,
css::uno::Reference<css::container::XNameContainer> const & xTo,
bool bOverwrite )
{
OSL_ENSURE( xFrom.is(), "no source" );
......
......@@ -198,7 +198,7 @@ void Model::addMIP( void* pTag, const XNode_t& xNode, const MIP& rMIP )
maMIPs.insert( aValue );
}
void Model::removeMIPs( void* pTag )
void Model::removeMIPs( void const * pTag )
{
OSL_ENSURE( pTag != nullptr, "empty tag?" );
......
......@@ -152,7 +152,7 @@ public:
// that were added using the same tag. No functions will be
// performed on it; hence the void* type.)
void addMIP( void* pTag, const XNode_t&, const MIP& );
void removeMIPs( void* pTag );
void removeMIPs( void const * pTag );
/// query which MIPs apply to the given node
MIP queryMIP( const XNode_t& xNode ) const;
......
......@@ -42,7 +42,7 @@ using com::sun::star::beans::PropertyAttribute::READONLY;
void xforms::copy( const Reference<XPropertySet>& xFrom,
Reference<XPropertySet>& xTo )
Reference<XPropertySet> const & xTo )
{
OSL_ENSURE( xFrom.is(), "no source" );
OSL_ENSURE( xTo.is(), "no target" );
......
......@@ -35,7 +35,7 @@ namespace xforms
{
/** copy the properties from one PropertySet into the next */
void copy( const css::uno::Reference<css::beans::XPropertySet>& , css::uno::Reference<css::beans::XPropertySet>& );
void copy( const css::uno::Reference<css::beans::XPropertySet>& , css::uno::Reference<css::beans::XPropertySet> const & );
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment