[Libreoffice-commits] core.git: include/svx svx/source

Noel Grandin noel.grandin at collabora.co.uk
Sat Nov 4 06:46:53 UTC 2017


 include/svx/contdlg.hxx                   |    2 +-
 include/svx/galtheme.hxx                  |    2 +-
 include/svx/imapdlg.hxx                   |    2 +-
 include/svx/rubydialog.hxx                |    2 +-
 svx/source/dialog/_contdlg.cxx            |    2 +-
 svx/source/dialog/imapdlg.cxx             |    2 +-
 svx/source/dialog/rubydialog.cxx          |    2 +-
 svx/source/gallery2/galtheme.cxx          |    2 +-
 svx/source/unodraw/UnoGraphicExporter.cxx |    4 ++--
 svx/source/unogallery/unogalitem.cxx      |    2 +-
 10 files changed, 11 insertions(+), 11 deletions(-)

New commits:
commit 7f81b9b9636b5f2333d1bc7eb0f2873aeb83ab07
Author: Noel Grandin <noel.grandin at collabora.co.uk>
Date:   Thu Nov 2 12:09:03 2017 +0200

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

diff --git a/include/svx/contdlg.hxx b/include/svx/contdlg.hxx
index 10a976cd5991..fdd59977101d 100644
--- a/include/svx/contdlg.hxx
+++ b/include/svx/contdlg.hxx
@@ -44,7 +44,7 @@ class Graphic;
 class SAL_WARN_UNUSED SVX_DLLPUBLIC SvxContourDlgChildWindow : public SfxChildWindow
 {
 public:
-    SvxContourDlgChildWindow( vcl::Window*, sal_uInt16, SfxBindings*, SfxChildWinInfo* );
+    SvxContourDlgChildWindow( vcl::Window*, sal_uInt16, SfxBindings*, SfxChildWinInfo const * );
 
     SFX_DECL_CHILDWINDOW_WITHID( SvxContourDlgChildWindow );
 };
diff --git a/include/svx/galtheme.hxx b/include/svx/galtheme.hxx
index ecdaea3a45ea..cf021b7758fe 100644
--- a/include/svx/galtheme.hxx
+++ b/include/svx/galtheme.hxx
@@ -90,7 +90,7 @@ private:
     bool                        bAbortActualize;
 
     SAL_DLLPRIVATE void         ImplCreateSvDrawStorage();
-    SgaObject*                  ImplReadSgaObject( GalleryObject* pEntry );
+    SgaObject*                  ImplReadSgaObject( GalleryObject const * pEntry );
     SAL_DLLPRIVATE bool         ImplWriteSgaObject( const SgaObject& rObj, size_t nPos, GalleryObject* pExistentEntry );
     SAL_DLLPRIVATE void         ImplWrite();
     SAL_DLLPRIVATE const GalleryObject* ImplGetGalleryObject( size_t nPos ) const
diff --git a/include/svx/imapdlg.hxx b/include/svx/imapdlg.hxx
index e328ab8b1e78..4c337ec59411 100644
--- a/include/svx/imapdlg.hxx
+++ b/include/svx/imapdlg.hxx
@@ -47,7 +47,7 @@ class SVX_DLLPUBLIC SvxIMapDlgChildWindow : public SfxChildWindow
 {
  public:
 
-    SvxIMapDlgChildWindow( vcl::Window*, sal_uInt16, SfxBindings*, SfxChildWinInfo* );
+    SvxIMapDlgChildWindow( vcl::Window*, sal_uInt16, SfxBindings*, SfxChildWinInfo const * );
 
     SFX_DECL_CHILDWINDOW_WITHID( SvxIMapDlgChildWindow );
 
diff --git a/include/svx/rubydialog.hxx b/include/svx/rubydialog.hxx
index 3b546f655313..2f093426045f 100644
--- a/include/svx/rubydialog.hxx
+++ b/include/svx/rubydialog.hxx
@@ -54,7 +54,7 @@ class SVX_DLLPUBLIC SvxRubyChildWindow : public SfxChildWindow
 {
  public:
 
-    SvxRubyChildWindow( vcl::Window*, sal_uInt16, SfxBindings*, SfxChildWinInfo* );
+    SvxRubyChildWindow( vcl::Window*, sal_uInt16, SfxBindings*, SfxChildWinInfo const * );
 
     SFX_DECL_CHILDWINDOW( SvxRubyChildWindow );
 
diff --git a/svx/source/dialog/_contdlg.cxx b/svx/source/dialog/_contdlg.cxx
index 52ff542f264d..ee3f962d63c7 100644
--- a/svx/source/dialog/_contdlg.cxx
+++ b/svx/source/dialog/_contdlg.cxx
@@ -66,7 +66,7 @@ void SvxContourDlgItem::StateChanged( sal_uInt16 nSID, SfxItemState /*eState*/,
 }
 
 SvxContourDlgChildWindow::SvxContourDlgChildWindow( vcl::Window* _pParent, sal_uInt16 nId,
-                                                    SfxBindings* pBindings, SfxChildWinInfo* pInfo ) :
+                                                    SfxBindings* pBindings, SfxChildWinInfo const * pInfo ) :
             SfxChildWindow( _pParent, nId )
 {
     VclPtr<SvxSuperContourDlg> pDlg = VclPtr<SvxSuperContourDlg>::Create(pBindings, this, _pParent);
diff --git a/svx/source/dialog/imapdlg.cxx b/svx/source/dialog/imapdlg.cxx
index 8182bb8b692d..a8792b246d04 100644
--- a/svx/source/dialog/imapdlg.cxx
+++ b/svx/source/dialog/imapdlg.cxx
@@ -92,7 +92,7 @@ void SvxIMapDlgItem::StateChanged( sal_uInt16 nSID, SfxItemState /*eState*/,
 
 SvxIMapDlgChildWindow::SvxIMapDlgChildWindow( vcl::Window* _pParent, sal_uInt16 nId,
                                               SfxBindings* pBindings,
-                                              SfxChildWinInfo* pInfo ) :
+                                              SfxChildWinInfo const * pInfo ) :
             SfxChildWindow( _pParent, nId )
 {
     SetWindow(VclPtr<SvxIMapDlg>::Create( pBindings, this, _pParent ));
diff --git a/svx/source/dialog/rubydialog.cxx b/svx/source/dialog/rubydialog.cxx
index f66d635f0db9..7776fcafa6b3 100644
--- a/svx/source/dialog/rubydialog.cxx
+++ b/svx/source/dialog/rubydialog.cxx
@@ -67,7 +67,7 @@ static const sal_Char cRubyCharStyleName[] = "RubyCharStyleName";
 
 } // end anonymous namespace
 
-SvxRubyChildWindow::SvxRubyChildWindow(vcl::Window* _pParent, sal_uInt16 nId,SfxBindings* pBindings, SfxChildWinInfo* pInfo)
+SvxRubyChildWindow::SvxRubyChildWindow(vcl::Window* _pParent, sal_uInt16 nId,SfxBindings* pBindings, SfxChildWinInfo const * pInfo)
     : SfxChildWindow(_pParent, nId)
 {
     VclPtr<SvxRubyDialog> pDlg = VclPtr<SvxRubyDialog>::Create(pBindings, this, _pParent);
diff --git a/svx/source/gallery2/galtheme.cxx b/svx/source/gallery2/galtheme.cxx
index 53aa456eb004..1e2342f2b429 100644
--- a/svx/source/gallery2/galtheme.cxx
+++ b/svx/source/gallery2/galtheme.cxx
@@ -145,7 +145,7 @@ bool GalleryTheme::ImplWriteSgaObject( const SgaObject& rObj, size_t nPos, Galle
     return bRet;
 }
 
-SgaObject* GalleryTheme::ImplReadSgaObject( GalleryObject* pEntry )
+SgaObject* GalleryTheme::ImplReadSgaObject( GalleryObject const * pEntry )
 {
     SgaObject* pSgaObj = nullptr;
 
diff --git a/svx/source/unodraw/UnoGraphicExporter.cxx b/svx/source/unodraw/UnoGraphicExporter.cxx
index 2188da8154b5..df98ffaf8dab 100644
--- a/svx/source/unodraw/UnoGraphicExporter.cxx
+++ b/svx/source/unodraw/UnoGraphicExporter.cxx
@@ -158,7 +158,7 @@ namespace {
         DECL_LINK( CalcFieldValueHdl, EditFieldInfo*, void );
 
         void ParseSettings( const Sequence< PropertyValue >& aDescriptor, ExportSettings& rSettings );
-        bool GetGraphic( ExportSettings& rSettings, Graphic& aGraphic, bool bVectorType );
+        bool GetGraphic( ExportSettings const & rSettings, Graphic& aGraphic, bool bVectorType );
 
     private:
         Reference< XShape >     mxShape;
@@ -596,7 +596,7 @@ void GraphicExporter::ParseSettings( const Sequence< PropertyValue >& aDescripto
     }
 }
 
-bool GraphicExporter::GetGraphic( ExportSettings& rSettings, Graphic& aGraphic, bool bVectorType )
+bool GraphicExporter::GetGraphic( ExportSettings const & rSettings, Graphic& aGraphic, bool bVectorType )
 {
     if( !mpDoc || !mpUnoPage )
         return false;
diff --git a/svx/source/unogallery/unogalitem.cxx b/svx/source/unogallery/unogalitem.cxx
index ebc113b56441..6f1bbfecfc7f 100644
--- a/svx/source/unogallery/unogalitem.cxx
+++ b/svx/source/unogallery/unogalitem.cxx
@@ -224,7 +224,7 @@ void GalleryItem::_setPropertyValues( const comphelper::PropertyMapEntry** ppEnt
 
             if( pGalTheme )
             {
-                std::unique_ptr<SgaObject> pObj(pGalTheme->ImplReadSgaObject( const_cast< GalleryObject* >( implGetObject() ) ));
+                std::unique_ptr<SgaObject> pObj(pGalTheme->ImplReadSgaObject( implGetObject() ));
 
                 if( pObj )
                 {


More information about the Libreoffice-commits mailing list