diff options
author | Noel Grandin <noelgrandin@gmail.com> | 2015-11-15 12:17:19 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2015-11-15 11:31:23 +0000 |
commit | 54d22957bc241fc5867fa1c720cf1266133e4e90 (patch) | |
tree | a94c9008ccbe953226a479a875e01119d77d9402 /animations | |
parent | 8e234c5b7d5bae66c544e581bee5770f3f83dd81 (diff) |
use initialiser for Sequence<OUString>
performed using:
git grep -lP 'Sequence.*OUString.*\(1\)'
| xargs perl -0777 -pi -e
"s/Sequence<OUString> (\w+)\(1\);
.*\[0\] = (\S+);/Sequence<OUString> \1 { \2 };/g"
Change-Id: I4da56c80fa09bfc1e8f868794001e9921431e09f
Reviewed-on: https://gerrit.libreoffice.org/19968
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Tested-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'animations')
-rw-r--r-- | animations/source/animcore/animcore.cxx | 33 |
1 files changed, 11 insertions, 22 deletions
diff --git a/animations/source/animcore/animcore.cxx b/animations/source/animcore/animcore.cxx index bfe6657c3d49..ab1bf53575b7 100644 --- a/animations/source/animcore/animcore.cxx +++ b/animations/source/animcore/animcore.cxx @@ -510,8 +510,7 @@ AnimationNode::~AnimationNode() Sequence<OUString> getSupportedServiceNames_PAR() { - Sequence<OUString> aRet(1); - aRet.getArray()[0] = "com.sun.star.animations.ParallelTimeContainer"; + Sequence<OUString> aRet { "com.sun.star.animations.ParallelTimeContainer" }; return aRet; } @@ -522,8 +521,7 @@ OUString getImplementationName_PAR() Sequence<OUString> getSupportedServiceNames_SEQ() { - Sequence<OUString> aRet(1); - aRet.getArray()[0] = "com.sun.star.animations.SequenceTimeContainer"; + Sequence<OUString> aRet { "com.sun.star.animations.SequenceTimeContainer" }; return aRet; } @@ -534,8 +532,7 @@ OUString getImplementationName_SEQ() Sequence<OUString> getSupportedServiceNames_ITERATE() { - Sequence<OUString> aRet(1); - aRet.getArray()[0] = "com.sun.star.animations.IterateContainer"; + Sequence<OUString> aRet { "com.sun.star.animations.IterateContainer" }; return aRet; } @@ -546,8 +543,7 @@ OUString getImplementationName_ITERATE() Sequence<OUString> getSupportedServiceNames_ANIMATE() { - Sequence<OUString> aRet(1); - aRet.getArray()[0] = "com.sun.star.animations.Animate"; + Sequence<OUString> aRet { "com.sun.star.animations.Animate" }; return aRet; } @@ -558,8 +554,7 @@ OUString getImplementationName_ANIMATE() Sequence<OUString> getSupportedServiceNames_SET() { - Sequence<OUString> aRet(1); - aRet.getArray()[0] = "com.sun.star.animations.AnimateSet"; + Sequence<OUString> aRet { "com.sun.star.animations.AnimateSet" }; return aRet; } @@ -570,8 +565,7 @@ OUString getImplementationName_SET() Sequence<OUString> getSupportedServiceNames_ANIMATECOLOR() { - Sequence<OUString> aRet(1); - aRet.getArray()[0] = "com.sun.star.animations.AnimateColor"; + Sequence<OUString> aRet { "com.sun.star.animations.AnimateColor" }; return aRet; } @@ -582,8 +576,7 @@ OUString getImplementationName_ANIMATECOLOR() Sequence<OUString> getSupportedServiceNames_ANIMATEMOTION() { - Sequence<OUString> aRet(1); - aRet.getArray()[0] = "com.sun.star.animations.AnimateMotion"; + Sequence<OUString> aRet { "com.sun.star.animations.AnimateMotion" }; return aRet; } @@ -594,8 +587,7 @@ OUString getImplementationName_ANIMATEMOTION() Sequence<OUString> getSupportedServiceNames_ANIMATETRANSFORM() { - Sequence<OUString> aRet(1); - aRet.getArray()[0] = "com.sun.star.animations.AnimateTransform"; + Sequence<OUString> aRet { "com.sun.star.animations.AnimateTransform" }; return aRet; } @@ -606,8 +598,7 @@ OUString getImplementationName_ANIMATETRANSFORM() Sequence<OUString> getSupportedServiceNames_TRANSITIONFILTER() { - Sequence<OUString> aRet(1); - aRet.getArray()[0] = "com.sun.star.animations.TransitionFilter"; + Sequence<OUString> aRet { "com.sun.star.animations.TransitionFilter" }; return aRet; } @@ -618,8 +609,7 @@ OUString getImplementationName_TRANSITIONFILTER() Sequence<OUString> getSupportedServiceNames_AUDIO() { - Sequence<OUString> aRet(1); - aRet.getArray()[0] = "com.sun.star.animations.Audio"; + Sequence<OUString> aRet { "com.sun.star.animations.Audio" }; return aRet; } @@ -630,8 +620,7 @@ OUString getImplementationName_AUDIO() Sequence<OUString> getSupportedServiceNames_COMMAND() { - Sequence<OUString> aRet(1); - aRet.getArray()[0] = "com.sun.star.animations.Command"; + Sequence<OUString> aRet { "com.sun.star.animations.Command" }; return aRet; } |