diff options
author | Arkadiy Illarionov <qarkai@gmail.com> | 2018-08-25 10:09:41 +0300 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-08-28 09:01:09 +0200 |
commit | eada4adee8a32be021ee3031d07e0ccda7217e0d (patch) | |
tree | 7757aee73ce1dd54988111a3a04cbf9dd0406348 | |
parent | abee8ffe6494a53b7b584597ef13831518a59d18 (diff) |
tdf#39593 deduplicate code using existing function
Change-Id: I437becdb0ed4840738d6c45d88cd3be2ff1243fb
Reviewed-on: https://gerrit.libreoffice.org/59591
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
-rw-r--r-- | oox/source/drawingml/shape.cxx | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/oox/source/drawingml/shape.cxx b/oox/source/drawingml/shape.cxx index e58d54bf863c..2f7cd0722938 100644 --- a/oox/source/drawingml/shape.cxx +++ b/oox/source/drawingml/shape.cxx @@ -413,12 +413,7 @@ static inline void lcl_setPropertyValue( std::vector<beans::PropertyValue>& rPro const OUString& rName, const beans::PropertyValue& rPropertyValue ) { - auto aIterator = std::find_if( - rPropVec.begin(), rPropVec.end(), - [rName]( const beans::PropertyValue& rValue ) { return rValue.Name == rName; } ); - - if (aIterator != rPropVec.end()) - rPropVec.erase( aIterator ); + lcl_resetPropertyValue( rPropVec, rName ); rPropVec.push_back( rPropertyValue ); } |