summaryrefslogtreecommitdiff
path: root/xmloff/source/draw/XMLShapeStyleContext.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'xmloff/source/draw/XMLShapeStyleContext.cxx')
-rw-r--r--xmloff/source/draw/XMLShapeStyleContext.cxx8
1 files changed, 2 insertions, 6 deletions
diff --git a/xmloff/source/draw/XMLShapeStyleContext.cxx b/xmloff/source/draw/XMLShapeStyleContext.cxx
index 31f4beeb2044..10013b18fc3c 100644
--- a/xmloff/source/draw/XMLShapeStyleContext.cxx
+++ b/xmloff/source/draw/XMLShapeStyleContext.cxx
@@ -135,16 +135,12 @@ void XMLShapeStyleContext::FillPropertySet( const Reference< beans::XPropertySet
::std::vector< XMLPropertyState > &rProperties = GetProperties();
::std::vector< XMLPropertyState >::iterator end( rProperties.end() );
- ::std::vector< XMLPropertyState >::iterator property;
// first, look for the old format, where we had a text:list-style-name
// attribute in the style:properties element
- for( property = rProperties.begin(); property != end; ++property )
- {
+ auto property = std::find_if(rProperties.begin(), end, [&rMapper](XMLPropertyState& rProp) {
// find properties with context
- if( (property->mnIndex != -1) && (rMapper->GetEntryContextId( property->mnIndex ) == CTF_SD_NUMBERINGRULES_NAME) )
- break;
- }
+ return (rProp.mnIndex != -1) && (rMapper->GetEntryContextId( rProp.mnIndex ) == CTF_SD_NUMBERINGRULES_NAME); });
// if we did not find an old list-style-name in the properties, and we need one
// because we got a style:list-style attribute in the style-style element