diff options
author | Takeshi Abe <tabe@fixedpoint.jp> | 2015-03-12 17:09:33 +0900 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2015-03-13 14:04:26 +0000 |
commit | e59015ef832178451ba2fca2fe7054fcf5090e9a (patch) | |
tree | f21189b4f2803c20f0248ea27496bce035d00b76 /starmath/source/smdetect.cxx | |
parent | 0845cdbdaedd7f556c471399c3bbc76d5cafffd2 (diff) |
Simplify code constructing uno::Sequence<OUString> by initializer_list
Change-Id: I17ef35da6feda65534bbb7d3cc9346d679613618
Reviewed-on: https://gerrit.libreoffice.org/14837
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Michael Stahl <mstahl@redhat.com>
Diffstat (limited to 'starmath/source/smdetect.cxx')
-rw-r--r-- | starmath/source/smdetect.cxx | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/starmath/source/smdetect.cxx b/starmath/source/smdetect.cxx index 27982f9db742..03ca462db359 100644 --- a/starmath/source/smdetect.cxx +++ b/starmath/source/smdetect.cxx @@ -139,9 +139,7 @@ Sequence< OUString > SAL_CALL SmFilterDetect::getSupportedServiceNames() throw( /* Helper for XServiceInfo */ Sequence< OUString > SmFilterDetect::impl_getStaticSupportedServiceNames() { - Sequence< OUString > seqServiceNames( 1 ); - seqServiceNames.getArray() [0] = "com.sun.star.frame.ExtendedTypeDetection"; - return seqServiceNames ; + return Sequence< OUString >{ "com.sun.star.frame.ExtendedTypeDetection" }; } /* Helper for XServiceInfo */ |