[Libreoffice-commits] core.git: forms/source

Noel Grandin noel.grandin at collabora.co.uk
Thu Aug 3 12:00:41 UTC 2017


 forms/source/component/Filter.cxx         |    2 +-
 forms/source/component/Filter.hxx         |    2 +-
 forms/source/component/imgprod.cxx        |    6 +++---
 forms/source/component/imgprod.hxx        |    2 +-
 forms/source/richtext/richtextcontrol.cxx |    2 +-
 forms/source/xforms/binding.cxx           |    4 ++--
 forms/source/xforms/model.cxx             |    2 +-
 forms/source/xforms/model.hxx             |    2 +-
 forms/source/xforms/unohelper.cxx         |    2 +-
 forms/source/xforms/unohelper.hxx         |    2 +-
 10 files changed, 13 insertions(+), 13 deletions(-)

New commits:
commit 4c04867710cd2bf5164a707bdc42e6f59d18c82d
Author: Noel Grandin <noel.grandin at collabora.co.uk>
Date:   Thu Aug 3 11:50:29 2017 +0200

    loplugin:constparams in forms
    
    Change-Id: Iad55606361fedc7d7e87e8f4a3565413579b1f72
    Reviewed-on: https://gerrit.libreoffice.org/40711
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Noel Grandin <noel.grandin at collabora.co.uk>

diff --git a/forms/source/component/Filter.cxx b/forms/source/component/Filter.cxx
index 37b1e5e14a03..414760b7573e 100644
--- a/forms/source/component/Filter.cxx
+++ b/forms/source/component/Filter.cxx
@@ -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;
diff --git a/forms/source/component/Filter.hxx b/forms/source/component/Filter.hxx
index a28ed7f1b199..1ce45ea84c0b 100644
--- a/forms/source/component/Filter.hxx
+++ b/forms/source/component/Filter.hxx
@@ -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 );
diff --git a/forms/source/component/imgprod.cxx b/forms/source/component/imgprod.cxx
index b49bbfd82678..666b7b016a6e 100644
--- a/forms/source/component/imgprod.cxx
+++ b/forms/source/component/imgprod.cxx
@@ -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();
diff --git a/forms/source/component/imgprod.hxx b/forms/source/component/imgprod.hxx
index 6fe3625a4e83..a247b2890f92 100644
--- a/forms/source/component/imgprod.hxx
+++ b/forms/source/component/imgprod.hxx
@@ -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;
diff --git a/forms/source/richtext/richtextcontrol.cxx b/forms/source/richtext/richtextcontrol.cxx
index 3e010f8711e5..5cf60a536254 100644
--- a/forms/source/richtext/richtextcontrol.cxx
+++ b/forms/source/richtext/richtextcontrol.cxx
@@ -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 )
diff --git a/forms/source/xforms/binding.cxx b/forms/source/xforms/binding.cxx
index 440309f7b656..cb045441cd97 100644
--- a/forms/source/xforms/binding.cxx
+++ b/forms/source/xforms/binding.cxx
@@ -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" );
diff --git a/forms/source/xforms/model.cxx b/forms/source/xforms/model.cxx
index 86bab08f3040..1ac41a3f47c2 100644
--- a/forms/source/xforms/model.cxx
+++ b/forms/source/xforms/model.cxx
@@ -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?" );
 
diff --git a/forms/source/xforms/model.hxx b/forms/source/xforms/model.hxx
index cda182010041..7f5fab55900d 100644
--- a/forms/source/xforms/model.hxx
+++ b/forms/source/xforms/model.hxx
@@ -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;
diff --git a/forms/source/xforms/unohelper.cxx b/forms/source/xforms/unohelper.cxx
index 90d1aebb9c44..2f5fa1538610 100644
--- a/forms/source/xforms/unohelper.cxx
+++ b/forms/source/xforms/unohelper.cxx
@@ -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" );
diff --git a/forms/source/xforms/unohelper.hxx b/forms/source/xforms/unohelper.hxx
index 88f7c0a8757f..d3bf9b730922 100644
--- a/forms/source/xforms/unohelper.hxx
+++ b/forms/source/xforms/unohelper.hxx
@@ -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 & );
 
 }
 


More information about the Libreoffice-commits mailing list