diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-07-28 11:47:51 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-07-28 14:51:56 +0200 |
commit | b09deb075319c1c19f91e3a6f64429b61682ebf8 (patch) | |
tree | 9e73d1e63092083a337a4ddf1dfe962b4f6ef4dc /toolkit | |
parent | 587d6e13df7bb9c8f78ce605ebb8f8fd34b85a2c (diff) |
loplugin:constparams handle constructors
had to change the structure of the plugin considerably, was too messy to
structure it to do the calculations on a per-function basis
Change-Id: I4edee7735f726101105c607368124a08dba21086
Reviewed-on: https://gerrit.libreoffice.org/40516
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'toolkit')
-rw-r--r-- | toolkit/source/awt/stylesettings.cxx | 2 | ||||
-rw-r--r-- | toolkit/source/controls/grid/sortablegriddatamodel.cxx | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/toolkit/source/awt/stylesettings.cxx b/toolkit/source/awt/stylesettings.cxx index f0e7375d9547..419216e66e23 100644 --- a/toolkit/source/awt/stylesettings.cxx +++ b/toolkit/source/awt/stylesettings.cxx @@ -80,7 +80,7 @@ namespace toolkit class StyleMethodGuard { public: - explicit StyleMethodGuard( WindowStyleSettings_Data& i_rData ) + explicit StyleMethodGuard( WindowStyleSettings_Data const & i_rData ) { if ( i_rData.pOwningWindow == nullptr ) throw DisposedException(); diff --git a/toolkit/source/controls/grid/sortablegriddatamodel.cxx b/toolkit/source/controls/grid/sortablegriddatamodel.cxx index 90e50d9a0ac7..af96671af26f 100644 --- a/toolkit/source/controls/grid/sortablegriddatamodel.cxx +++ b/toolkit/source/controls/grid/sortablegriddatamodel.cxx @@ -514,7 +514,7 @@ public: public: CellDataLessComparison( ::std::vector< Any > const & i_data, - ::comphelper::IKeyPredicateLess& i_predicate, + ::comphelper::IKeyPredicateLess const & i_predicate, bool const i_sortAscending ) :m_data( i_data ) |