diff options
author | danielt998 <daniel@fearnley.net> | 2016-02-11 22:07:09 +0000 |
---|---|---|
committer | Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de> | 2016-02-12 15:29:25 +0000 |
commit | 2b31daf74e33b988c849cb26e88fa7657a4015af (patch) | |
tree | b4385985063c60b7900c63a1a229ef5165dbc12d /toolkit | |
parent | 662406b44d16c713c3d42585b57caf46689980f0 (diff) |
tdf#95857 Sort out German plurals ...
Made a start in removing the incorrect 'Infos' German plural
Change-Id: Ie989351a7473fc35b563e63ce6a4fb229093af60
Reviewed-on: https://gerrit.libreoffice.org/22301
Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
Tested-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
Diffstat (limited to 'toolkit')
-rw-r--r-- | toolkit/source/helper/property.cxx | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/toolkit/source/helper/property.cxx b/toolkit/source/helper/property.cxx index ca81a1e5b850..9e8b544db346 100644 --- a/toolkit/source/helper/property.cxx +++ b/toolkit/source/helper/property.cxx @@ -311,8 +311,8 @@ void ImplAssertValidPropertyArray() if( !bSorted ) { sal_uInt16 nElements; - ImplPropertyInfo* pInfos = ImplGetPropertyInfos( nElements ); - ::std::sort(pInfos, pInfos+nElements,ImplPropertyInfoCompareFunctor()); + ImplPropertyInfo* pInfo = ImplGetPropertyInfos( nElements ); + ::std::sort(pInfo, pInfo+nElements,ImplPropertyInfoCompareFunctor()); bSorted = true; } } @@ -322,14 +322,14 @@ sal_uInt16 GetPropertyId( const OUString& rPropertyName ) ImplAssertValidPropertyArray(); sal_uInt16 nElements; - ImplPropertyInfo* pInfos = ImplGetPropertyInfos( nElements ); - ImplPropertyInfo* pInf = ::std::lower_bound(pInfos,pInfos+nElements,rPropertyName,ImplPropertyInfoCompareFunctor()); + ImplPropertyInfo* pInfo = ImplGetPropertyInfos( nElements ); + ImplPropertyInfo* pInf = ::std::lower_bound(pInfo,pInfo+nElements,rPropertyName,ImplPropertyInfoCompareFunctor()); /* (ImplPropertyInfo*) - bsearch( &aSearch, pInfos, nElements, sizeof( ImplPropertyInfo ), ImplPropertyInfoCompare ); + bsearch( &aSearch, pInfo, nElements, sizeof( ImplPropertyInfo ), ImplPropertyInfoCompare ); */ - return ( pInf && pInf != (pInfos+nElements) && pInf->aName == rPropertyName) ? pInf->nPropId: 0; + return ( pInf && pInf != (pInfo+nElements) && pInf->aName == rPropertyName) ? pInf->nPropId: 0; } const ImplPropertyInfo* ImplGetImplPropertyInfo( sal_uInt16 nPropertyId ) @@ -337,12 +337,12 @@ const ImplPropertyInfo* ImplGetImplPropertyInfo( sal_uInt16 nPropertyId ) ImplAssertValidPropertyArray(); sal_uInt16 nElements; - ImplPropertyInfo* pInfos = ImplGetPropertyInfos( nElements ); + ImplPropertyInfo* pInfo = ImplGetPropertyInfos( nElements ); sal_uInt16 n; - for ( n = 0; n < nElements && pInfos[n].nPropId != nPropertyId; ++n) + for ( n = 0; n < nElements && pInfo[n].nPropId != nPropertyId; ++n) ; - return (n < nElements) ? &pInfos[n] : nullptr; + return (n < nElements) ? &pInfo[n] : nullptr; } sal_uInt16 GetPropertyOrderNr( sal_uInt16 nPropertyId ) @@ -350,10 +350,10 @@ sal_uInt16 GetPropertyOrderNr( sal_uInt16 nPropertyId ) ImplAssertValidPropertyArray(); sal_uInt16 nElements; - ImplPropertyInfo* pInfos = ImplGetPropertyInfos( nElements ); + ImplPropertyInfo* pInfo = ImplGetPropertyInfos( nElements ); for ( sal_uInt16 n = nElements; n; ) { - if ( pInfos[--n].nPropId == nPropertyId ) + if ( pInfo[--n].nPropId == nPropertyId ) return n; } return 0xFFFF; |