diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-08-28 11:15:47 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-08-29 09:00:52 +0200 |
commit | 6dbae37b8d2d2d1ecad85c772fd684803b5a52cb (patch) | |
tree | cb6637327913a5f9641c2c0065de4c6a00983947 /include | |
parent | dc06c8f4989fc28d0c31ebd333e53dfe0e0f5f66 (diff) |
loplugin:constantparam (1)
Change-Id: I25077e391ecca1b678062d261a83d88daadf0a58
Reviewed-on: https://gerrit.libreoffice.org/59701
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include')
-rw-r--r-- | include/comphelper/sequence.hxx | 6 | ||||
-rw-r--r-- | include/connectivity/dbtools.hxx | 5 | ||||
-rw-r--r-- | include/editeng/nhypitem.hxx | 3 |
3 files changed, 5 insertions, 9 deletions
diff --git a/include/comphelper/sequence.hxx b/include/comphelper/sequence.hxx index c3bddb28aaa9..ee1cdf6edf4f 100644 --- a/include/comphelper/sequence.hxx +++ b/include/comphelper/sequence.hxx @@ -29,10 +29,10 @@ namespace comphelper { - /** search the given string within the given sequence, return the positions where it was found. - if _bOnlyFirst is sal_True, only the first occurrence will be returned. + /** Search the given string within the given sequence, return the position of the first occurence. + Returns -1 if nothing found. */ - COMPHELPER_DLLPUBLIC css::uno::Sequence<sal_Int16> findValue(const css::uno::Sequence< OUString >& _rList, const OUString& _rValue, bool _bOnlyFirst); + COMPHELPER_DLLPUBLIC sal_Int32 findValue(const css::uno::Sequence< OUString >& _rList, const OUString& _rValue); namespace internal { diff --git a/include/connectivity/dbtools.hxx b/include/connectivity/dbtools.hxx index b777635a100b..c10963cd6796 100644 --- a/include/connectivity/dbtools.hxx +++ b/include/connectivity/dbtools.hxx @@ -796,13 +796,10 @@ namespace dbtools look for column sName in there @param _sName name of the column - @param whenNotFound - value returned when _sName is not in _xColumns */ OOO_DLLPUBLIC_DBTOOLS bool isAggregateColumn( const css::uno::Reference< css::container::XNameAccess > &_xColumns, - const OUString &_sName, - bool whenNotFound + const OUString &_sName ); /** is this column an aggregate? diff --git a/include/editeng/nhypitem.hxx b/include/editeng/nhypitem.hxx index b05569f0599f..69f5477678d4 100644 --- a/include/editeng/nhypitem.hxx +++ b/include/editeng/nhypitem.hxx @@ -26,8 +26,7 @@ class EDITENG_DLLPUBLIC SvxNoHyphenItem : public SfxBoolItem { public: - SvxNoHyphenItem( const bool bHyphen /*= true*/, - const sal_uInt16 nId ); + SvxNoHyphenItem( const sal_uInt16 nId ); // "pure virtual Methods" from SfxPoolItem virtual SfxPoolItem* Clone( SfxItemPool *pPool = nullptr ) const override; |