From 32f95a35514701ed16413125b440c16d90f52b4a Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Wed, 4 Mar 2015 09:28:31 +0000 Subject: V813: Decreased performance Change-Id: I8a7528366156b288dc422b09cff0d5a32cde3c91 --- connectivity/source/commontools/sqlerror.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'connectivity') diff --git a/connectivity/source/commontools/sqlerror.cxx b/connectivity/source/commontools/sqlerror.cxx index 37c4e655991f..fa5f4c034ebc 100644 --- a/connectivity/source/commontools/sqlerror.cxx +++ b/connectivity/source/commontools/sqlerror.cxx @@ -124,17 +124,17 @@ namespace connectivity /** substitutes a given placeholder in the given message with the given value */ - void lcl_substitutePlaceholder( OUString& _rMessage, const sal_Char* _pPlaceholder, ParamValue _rParamValue ) + void lcl_substitutePlaceholder(OUString& _rMessage, const sal_Char* _pPlaceholder, const ParamValue& rParamValue) { size_t nPlaceholderLen( strlen( _pPlaceholder ) ); sal_Int32 nIndex = _rMessage.indexOfAsciiL( _pPlaceholder, nPlaceholderLen ); bool bHasPlaceholder = ( nIndex != -1 ); - bool bWantsPlaceholder = _rParamValue.is(); + bool bWantsPlaceholder = rParamValue.is(); OSL_ENSURE( bHasPlaceholder == bWantsPlaceholder, "lcl_substitutePlaceholder: placeholder where none is expected, or no placeholder where one is needed!" ); if ( bHasPlaceholder && bWantsPlaceholder ) - _rMessage = _rMessage.replaceAt( nIndex, nPlaceholderLen, *_rParamValue ); + _rMessage = _rMessage.replaceAt( nIndex, nPlaceholderLen, *rParamValue ); } -- cgit