From 2f5868c4309d49ad495e0763b5b57d1f7f98e377 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Fri, 9 Mar 2018 13:59:52 +0200 Subject: loplugin:redundantfcast look for redundant copies in return statements Change-Id: I5f416c865dfe1c36018784246a8007452eb42008 Reviewed-on: https://gerrit.libreoffice.org/50996 Tested-by: Jenkins Reviewed-by: Noel Grandin --- ucbhelper/source/provider/propertyvalueset.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ucbhelper') diff --git a/ucbhelper/source/provider/propertyvalueset.cxx b/ucbhelper/source/provider/propertyvalueset.cxx index 9bc72f9ebb9f..0ac8509ab60c 100644 --- a/ucbhelper/source/provider/propertyvalueset.cxx +++ b/ucbhelper/source/provider/propertyvalueset.cxx @@ -565,7 +565,7 @@ sal_Int32 SAL_CALL PropertyValueSet::findColumn( const OUString& columnName ) for ( sal_Int32 n = 0; n < nCount; ++n ) { if ( (*m_pValues)[ n ].sPropertyName == columnName ) - return sal_Int32( n + 1 ); // Index is 1-based. + return n + 1; // Index is 1-based. } } return 0; -- cgit