[Libreoffice-commits] core.git: comphelper/source
Jens Carl
j.carl43 at gmx.de
Wed Mar 29 19:20:54 UTC 2017
comphelper/source/property/property.cxx | 8 +++-----
1 file changed, 3 insertions(+), 5 deletions(-)
New commits:
commit 6a101635b21d483c115fa3a75ad35fe7eefb0025
Author: Jens Carl <j.carl43 at gmx.de>
Date: Wed Mar 29 02:24:22 2017 +0000
tdf#39468 Translate German comments
Translate German comments and terms
Change-Id: Ic80dd218bfae5a3523e12cda77b911a4413b8dc6
Reviewed-on: https://gerrit.libreoffice.org/35819
Tested-by: Jenkins <ci at libreoffice.org>
Reviewed-by: Michael Stahl <mstahl at redhat.com>
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<Property>& _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<Property>& 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;
More information about the Libreoffice-commits
mailing list