[Libreoffice-commits] core.git: dbaccess/source hwpfilter/source oox/source

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Thu Jan 24 06:47:16 UTC 2019


 dbaccess/source/ui/dlg/TablesSingleDlg.cxx  |    2 +-
 dbaccess/source/ui/inc/TablesSingleDlg.hxx  |    2 +-
 dbaccess/source/ui/inc/UITools.hxx          |    4 ++--
 dbaccess/source/ui/misc/UITools.cxx         |    4 ++--
 dbaccess/source/ui/querydesign/querydlg.cxx |    2 +-
 dbaccess/source/ui/querydesign/querydlg.hxx |    2 +-
 hwpfilter/source/solver.cxx                 |    2 +-
 hwpfilter/source/solver.h                   |    2 +-
 oox/source/drawingml/shape.cxx              |    2 +-
 oox/source/drawingml/table/tablecell.cxx    |    2 +-
 10 files changed, 12 insertions(+), 12 deletions(-)

New commits:
commit 976da2b60ebe4e8bb7c311c1c6325519db6c5bda
Author:     Noel Grandin <noel.grandin at collabora.co.uk>
AuthorDate: Wed Jan 23 14:33:04 2019 +0200
Commit:     Noel Grandin <noel.grandin at collabora.co.uk>
CommitDate: Thu Jan 24 07:46:46 2019 +0100

    loplugin:constparams in dbaccess..oox
    
    Change-Id: I9c04906dd492c6f8a816f57f40bc31406a871a78
    Reviewed-on: https://gerrit.libreoffice.org/66793
    Tested-by: Jenkins
    Reviewed-by: Noel Grandin <noel.grandin at collabora.co.uk>

diff --git a/dbaccess/source/ui/dlg/TablesSingleDlg.cxx b/dbaccess/source/ui/dlg/TablesSingleDlg.cxx
index b332f0018de6..8673bcf25b5b 100644
--- a/dbaccess/source/ui/dlg/TablesSingleDlg.cxx
+++ b/dbaccess/source/ui/dlg/TablesSingleDlg.cxx
@@ -33,7 +33,7 @@ using namespace com::sun::star::container;
 
     // OTableSubscriptionDialog
 OTableSubscriptionDialog::OTableSubscriptionDialog(vcl::Window* pParent
-            ,SfxItemSet* _pItems
+            ,const SfxItemSet* _pItems
             ,const Reference< XComponentContext >& _rxORB
             ,const css::uno::Any& _aDataSourceName)
     : SfxSingleTabDialog(pParent, _pItems, "TablesFilterDialog",
diff --git a/dbaccess/source/ui/inc/TablesSingleDlg.hxx b/dbaccess/source/ui/inc/TablesSingleDlg.hxx
index 2df28c524308..a72f70fe756c 100644
--- a/dbaccess/source/ui/inc/TablesSingleDlg.hxx
+++ b/dbaccess/source/ui/inc/TablesSingleDlg.hxx
@@ -48,7 +48,7 @@ class ODbDataSourceAdministrationHelper;
     public:
 
         OTableSubscriptionDialog(vcl::Window* pParent
-            ,SfxItemSet* _pItems
+            ,const SfxItemSet* _pItems
             ,const css::uno::Reference< css::uno::XComponentContext >& _rxORB
             ,const css::uno::Any& _aDataSourceName
         );
diff --git a/dbaccess/source/ui/inc/UITools.hxx b/dbaccess/source/ui/inc/UITools.hxx
index 7a1d7613815a..8b08d08a31ee 100644
--- a/dbaccess/source/ui/inc/UITools.hxx
+++ b/dbaccess/source/ui/inc/UITools.hxx
@@ -183,11 +183,11 @@ namespace dbaui
     void callColumnFormatDialog(const css::uno::Reference< css::beans::XPropertySet>& _xAffectedCol,
                                 const css::uno::Reference< css::beans::XPropertySet>& _xField,
                                 SvNumberFormatter* _pFormatter,
-                                vcl::Window* _pParent);
+                                const vcl::Window* _pParent);
 
     /** second variant of the function before
     */
-    bool callColumnFormatDialog(vcl::Window* _pParent,
+    bool callColumnFormatDialog(const vcl::Window* _pParent,
                                     SvNumberFormatter* _pFormatter,
                                     sal_Int32 _nDataType,
                                     sal_Int32& _nFormatKey,
diff --git a/dbaccess/source/ui/misc/UITools.cxx b/dbaccess/source/ui/misc/UITools.cxx
index ae2c46f8ee55..af8ec154deb9 100644
--- a/dbaccess/source/ui/misc/UITools.cxx
+++ b/dbaccess/source/ui/misc/UITools.cxx
@@ -741,7 +741,7 @@ SvxCellHorJustify mapTextJustify(sal_Int32 _nAlignment)
 void callColumnFormatDialog(const Reference<XPropertySet>& xAffectedCol,
                             const Reference<XPropertySet>& xField,
                             SvNumberFormatter* _pFormatter,
-                            vcl::Window* _pParent)
+                            const vcl::Window* _pParent)
 {
     if (xAffectedCol.is() && xField.is())
     {
@@ -774,7 +774,7 @@ void callColumnFormatDialog(const Reference<XPropertySet>& xAffectedCol,
     }
 }
 
-bool callColumnFormatDialog(vcl::Window* _pParent,
+bool callColumnFormatDialog(const vcl::Window* _pParent,
                                 SvNumberFormatter* _pFormatter,
                                 sal_Int32 _nDataType,
                                 sal_Int32& _nFormatKey,
diff --git a/dbaccess/source/ui/querydesign/querydlg.cxx b/dbaccess/source/ui/querydesign/querydlg.cxx
index 2fa5ab16f66e..0370e6b0f38c 100644
--- a/dbaccess/source/ui/querydesign/querydlg.cxx
+++ b/dbaccess/source/ui/querydesign/querydlg.cxx
@@ -43,7 +43,7 @@ using namespace ::com::sun::star::sdbc;
 
 DlgQryJoin::DlgQryJoin( OQueryTableView * pParent,
                        const TTableConnectionData::value_type& _pData,
-                       OJoinTableView::OTableWindowMap* _pTableMap,
+                       const OJoinTableView::OTableWindowMap* _pTableMap,
                        const Reference< XConnection >& _xConnection,
                        bool _bAllowTableSelect)
     : ModalDialog( pParent, "JoinDialog", "dbaccess/ui/joindialog.ui" )
diff --git a/dbaccess/source/ui/querydesign/querydlg.hxx b/dbaccess/source/ui/querydesign/querydlg.hxx
index 004afdc4fc32..08b037a440cd 100644
--- a/dbaccess/source/ui/querydesign/querydlg.hxx
+++ b/dbaccess/source/ui/querydesign/querydlg.hxx
@@ -62,7 +62,7 @@ namespace dbaui
     public:
         DlgQryJoin( OQueryTableView * pParent,
                     const TTableConnectionData::value_type& pData,
-                    OJoinTableView::OTableWindowMap*    _pTableMap,
+                    const OJoinTableView::OTableWindowMap*    _pTableMap,
                     const css::uno::Reference< css::sdbc::XConnection >& _xConnection,
                     bool _bAllowTableSelect);
         virtual ~DlgQryJoin() override;
diff --git a/hwpfilter/source/solver.cxx b/hwpfilter/source/solver.cxx
index 83db1043d8c9..07889620f9c2 100644
--- a/hwpfilter/source/solver.cxx
+++ b/hwpfilter/source/solver.cxx
@@ -44,7 +44,7 @@ std::unique_ptr<double[]> mgcLinearSystemD::NewVector (int N)
   return B;
 }
 
-bool mgcLinearSystemD::Solve (int n, std::unique_ptr<std::unique_ptr<double[]>[]>& a, double* b)
+bool mgcLinearSystemD::Solve (int n, std::unique_ptr<std::unique_ptr<double[]>[]> const & a, double* b)
 {
   std::unique_ptr<int[]> indxc( new int[n] );
   if ( !indxc )
diff --git a/hwpfilter/source/solver.h b/hwpfilter/source/solver.h
index 4d2a5e3a8eb8..451ed068142a 100644
--- a/hwpfilter/source/solver.h
+++ b/hwpfilter/source/solver.h
@@ -26,7 +26,7 @@ public:
   static std::unique_ptr<std::unique_ptr<double[]>[]> NewMatrix (int N);
   static std::unique_ptr<double[]> NewVector (int N);
 
-  static bool Solve (int N, std::unique_ptr<std::unique_ptr<double[]>[]>& A, double* b);
+  static bool Solve (int N, std::unique_ptr<std::unique_ptr<double[]>[]> const & A, double* b);
   // Input:
   //     A[N][N] coefficient matrix, entries are A[row][col]
   //     b[N] vector, entries are b[row]
diff --git a/oox/source/drawingml/shape.cxx b/oox/source/drawingml/shape.cxx
index a3891cb44746..09f828e8bfa8 100644
--- a/oox/source/drawingml/shape.cxx
+++ b/oox/source/drawingml/shape.cxx
@@ -426,7 +426,7 @@ static SdrTextHorzAdjust lcl_convertAdjust( ParagraphAdjust eAdjust )
     return SDRTEXTHORZADJUST_LEFT;
 }
 
-static void lcl_createPresetShape(uno::Reference<drawing::XShape>& xShape,
+static void lcl_createPresetShape(const uno::Reference<drawing::XShape>& xShape,
                                          const OUString& rClass, const OUString& rPresetType,
                                          const CustomShapePropertiesPtr& pCustomShapePropertiesPtr,
                                          const TextBodyPtr& pTextBody,
diff --git a/oox/source/drawingml/table/tablecell.cxx b/oox/source/drawingml/table/tablecell.cxx
index bfcf750f51e0..f27117fd2b42 100644
--- a/oox/source/drawingml/table/tablecell.cxx
+++ b/oox/source/drawingml/table/tablecell.cxx
@@ -70,7 +70,7 @@ TableCell::~TableCell()
 }
 
 static void applyLineAttributes( const ::oox::core::XmlFilterBase& rFilterBase,
-        Reference< XPropertySet > const & rxPropSet, oox::drawingml::LineProperties& rLineProperties,
+        Reference< XPropertySet > const & rxPropSet, oox::drawingml::LineProperties const & rLineProperties,
         sal_Int32 nPropId )
 {
     BorderLine2 aBorderLine;


More information about the Libreoffice-commits mailing list