From 5685ee25aad4a4debb47fb5896082be48f521d17 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Thu, 14 Sep 2017 13:59:33 +0200 Subject: improve redundantcast loplugin to find c-style casts where the expression is a templated method Change-Id: Ifbd1e2cdc72d906fc95a7ec0f9408c3f6d2a836b Reviewed-on: https://gerrit.libreoffice.org/42275 Tested-by: Jenkins Reviewed-by: Noel Grandin --- framework/source/services/substitutepathvars.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'framework/source/services') diff --git a/framework/source/services/substitutepathvars.cxx b/framework/source/services/substitutepathvars.cxx index c72771c47a0f..44a17f6ac6b7 100644 --- a/framework/source/services/substitutepathvars.cxx +++ b/framework/source/services/substitutepathvars.cxx @@ -359,7 +359,7 @@ OUString SubstitutePathVariables::impl_substituteVariable( const OUString& rText if ( pNTOIIter != m_aPreDefVarMap.end() ) { // Fixed/Predefined variable found - PreDefVariable nIndex = (PreDefVariable)pNTOIIter->second; + PreDefVariable nIndex = pNTOIIter->second; // Determine variable value and length from array/table if ( nIndex == PREDEFVAR_WORK && !bWorkRetrieved ) @@ -592,7 +592,7 @@ OUString const & SubstitutePathVariables::impl_getSubstituteVariableValue( const // Fixed/Predefined variable if ( pNTOIIter != m_aPreDefVarMap.end() ) { - PreDefVariable nIndex = (PreDefVariable)pNTOIIter->second; + PreDefVariable nIndex = pNTOIIter->second; return m_aPreDefVars.m_FixedVar[(sal_Int32)nIndex]; } else -- cgit