From 6dbae37b8d2d2d1ecad85c772fd684803b5a52cb Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Tue, 28 Aug 2018 11:15:47 +0200 Subject: loplugin:constantparam (1) Change-Id: I25077e391ecca1b678062d261a83d88daadf0a58 Reviewed-on: https://gerrit.libreoffice.org/59701 Tested-by: Jenkins Reviewed-by: Noel Grandin --- include/comphelper/sequence.hxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'include/comphelper') 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 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 { -- cgit