diff options
author | Noel Grandin <noel@peralex.com> | 2015-11-06 09:23:33 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2015-11-09 08:34:40 +0000 |
commit | 6c80a8fe89fadf9a2c7260a09c037a09462f53d1 (patch) | |
tree | d36da9ee2a5fdc579d2a57ff6ba02deaddfa785a /oox/source/drawingml/customshapegeometry.cxx | |
parent | e1fc599eb764186e5d511ace9785463eebbc7028 (diff) |
new loplugin: oncevar
Change-Id: If57390510dde4d166be3141b9f658a7453755d3f
Reviewed-on: https://gerrit.libreoffice.org/19815
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'oox/source/drawingml/customshapegeometry.cxx')
-rw-r--r-- | oox/source/drawingml/customshapegeometry.cxx | 60 |
1 files changed, 12 insertions, 48 deletions
diff --git a/oox/source/drawingml/customshapegeometry.cxx b/oox/source/drawingml/customshapegeometry.cxx index 6875629f87f2..9eabc38637f1 100644 --- a/oox/source/drawingml/customshapegeometry.cxx +++ b/oox/source/drawingml/customshapegeometry.cxx @@ -146,76 +146,40 @@ OUString GetFormulaParameter( const EnhancedCustomShapeParameter& rParameter ) } break; case EnhancedCustomShapeParameterType::LEFT : - { - const OUString sLeft( "left" ); - aRet = sLeft; - } + aRet = "left"; break; case EnhancedCustomShapeParameterType::TOP : - { - const OUString sTop( "top" ); - aRet = sTop; - } + aRet = "top"; break; case EnhancedCustomShapeParameterType::RIGHT : - { - const OUString sRight( "right" ); - aRet = sRight; - } + aRet = "right"; break; case EnhancedCustomShapeParameterType::BOTTOM : - { - const OUString sBottom( "bottom" ); - aRet = sBottom; - } + aRet = "bottom"; break; case EnhancedCustomShapeParameterType::XSTRETCH : - { - const OUString sXStretch( "xstretch" ); - aRet = sXStretch; - } + aRet = "xstretch"; break; case EnhancedCustomShapeParameterType::YSTRETCH : - { - const OUString sYStretch( "ystretch" ); - aRet = sYStretch; - } + aRet = "ystretch"; break; case EnhancedCustomShapeParameterType::HASSTROKE : - { - const OUString sHasStroke( "hasstroke" ); - aRet = sHasStroke; - } + aRet = "hasstroke"; break; case EnhancedCustomShapeParameterType::HASFILL : - { - const OUString sHasFill( "hasfill" ); - aRet = sHasFill; - } + aRet = "hasfill"; break; case EnhancedCustomShapeParameterType::WIDTH : - { - const OUString sWidth( "width" ); - aRet = sWidth; - } + aRet = "width"; break; case EnhancedCustomShapeParameterType::HEIGHT : - { - const OUString sHeight( "height" ); - aRet = sHeight; - } + aRet = "height"; break; case EnhancedCustomShapeParameterType::LOGWIDTH : - { - const OUString sLogWidth( "logwidth" ); - aRet = sLogWidth; - } + aRet = "logwidth"; break; case EnhancedCustomShapeParameterType::LOGHEIGHT : - { - const OUString sLogHeight( "logheight" ); - aRet = sLogHeight; - } + aRet = "logheight"; break; } return aRet; |