From 6a101635b21d483c115fa3a75ad35fe7eefb0025 Mon Sep 17 00:00:00 2001 From: Jens Carl Date: Wed, 29 Mar 2017 02:24:22 +0000 Subject: tdf#39468 Translate German comments Translate German comments and terms Change-Id: Ic80dd218bfae5a3523e12cda77b911a4413b8dc6 Reviewed-on: https://gerrit.libreoffice.org/35819 Tested-by: Jenkins Reviewed-by: Michael Stahl --- comphelper/source/property/property.cxx | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'comphelper/source/property') diff --git a/comphelper/source/property/property.cxx b/comphelper/source/property/property.cxx index a7533bc9f2bf..d5ddc9a9ab7b 100644 --- a/comphelper/source/property/property.cxx +++ b/comphelper/source/property/property.cxx @@ -144,15 +144,14 @@ void RemoveProperty(Sequence& _rProps, const OUString& _rPropName) { sal_Int32 nLen = _rProps.getLength(); - // binaere Suche + // binary search const Property* pProperties = _rProps.getConstArray(); Property aNameProp(_rPropName, 0, Type(), 0); const Property* pResult = std::lower_bound(pProperties, pProperties + nLen, aNameProp, PropertyCompareByName()); - // gefunden ? if ( pResult && (pResult != pProperties + nLen) && (pResult->Name == _rPropName) ) { - OSL_ENSURE(pResult->Name.equals(_rPropName), "::RemoveProperty Properties nicht sortiert"); + OSL_ENSURE(pResult->Name.equals(_rPropName), "::RemoveProperty Properties not sorted"); removeElementAt(_rProps, pResult - pProperties); } } @@ -162,12 +161,11 @@ void ModifyPropertyAttributes(Sequence& seqProps, const OUString& sPro { sal_Int32 nLen = seqProps.getLength(); - // binaere Suche + // binary search Property* pProperties = seqProps.getArray(); Property aNameProp(sPropName, 0, Type(), 0); Property* pResult = std::lower_bound(pProperties, pProperties + nLen, aNameProp, PropertyCompareByName()); - // gefunden ? if ( pResult && (pResult != pProperties + nLen) && (pResult->Name == sPropName) ) { pResult->Attributes |= nAddAttrib; -- cgit