summaryrefslogtreecommitdiff
path: root/embeddedobj
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2021-06-08 13:35:11 +0200
committerJulien Nabet <serval2412@yahoo.fr>2021-06-08 17:08:06 +0200
commitc7a9a1dbe2b30afb564953ce1e856b95e3ec9436 (patch)
tree2ee177cda58e457bc0fbdedcf792cc7d8e1b362b /embeddedobj
parentaf8dc07bfdf5d6e7bd2278305cd39ed269e50ed7 (diff)
Simplify Sequences initializations (desktop/e*/filter/forms/formula/fpicker)
includes removing of unused TOKEN_SEP Change-Id: Ic72d9d94bd8d07232699ee4d948f3b203d524491 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116833 Tested-by: Jenkins Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Diffstat (limited to 'embeddedobj')
-rw-r--r--embeddedobj/source/msole/oleembed.cxx4
-rw-r--r--embeddedobj/test/mtexecutor/bitmapcreator.cxx9
-rw-r--r--embeddedobj/test/mtexecutor/mainthreadexecutor.cxx9
3 files changed, 11 insertions, 11 deletions
diff --git a/embeddedobj/source/msole/oleembed.cxx b/embeddedobj/source/msole/oleembed.cxx
index 926f5b9e9393..8c23a4429895 100644
--- a/embeddedobj/source/msole/oleembed.cxx
+++ b/embeddedobj/source/msole/oleembed.cxx
@@ -91,9 +91,7 @@ void OleEmbeddedObject::SwitchComponentToRunningState_Impl()
uno::Sequence< sal_Int32 > OleEmbeddedObject::GetReachableStatesList_Impl(
const uno::Sequence< embed::VerbDescriptor >& aVerbList )
{
- uno::Sequence< sal_Int32 > aStates(2);
- aStates[0] = embed::EmbedStates::LOADED;
- aStates[1] = embed::EmbedStates::RUNNING;
+ uno::Sequence< sal_Int32 > aStates { embed::EmbedStates::LOADED, embed::EmbedStates::RUNNING };
for ( embed::VerbDescriptor const & vd : aVerbList )
if ( vd.VerbID == embed::EmbedVerbs::MS_OLEVERB_OPEN )
{
diff --git a/embeddedobj/test/mtexecutor/bitmapcreator.cxx b/embeddedobj/test/mtexecutor/bitmapcreator.cxx
index 458c085ae111..60a89f8cd078 100644
--- a/embeddedobj/test/mtexecutor/bitmapcreator.cxx
+++ b/embeddedobj/test/mtexecutor/bitmapcreator.cxx
@@ -29,10 +29,11 @@ using namespace ::com::sun::star;
uno::Sequence< OUString > SAL_CALL VCLBitmapCreator::impl_staticGetSupportedServiceNames()
{
- uno::Sequence< OUString > aRet(2);
- aRet[0] = "com.sun.star.embed.BitmapCreator";
- aRet[1] = "com.sun.star.comp.embed.BitmapCreator";
- return aRet;
+ return
+ {
+ "com.sun.star.embed.BitmapCreator",
+ "com.sun.star.comp.embed.BitmapCreator"
+ };
}
diff --git a/embeddedobj/test/mtexecutor/mainthreadexecutor.cxx b/embeddedobj/test/mtexecutor/mainthreadexecutor.cxx
index 1fc7d2e3cc31..82a124a2c969 100644
--- a/embeddedobj/test/mtexecutor/mainthreadexecutor.cxx
+++ b/embeddedobj/test/mtexecutor/mainthreadexecutor.cxx
@@ -27,10 +27,11 @@ using namespace ::com::sun::star;
uno::Sequence< OUString > SAL_CALL MainThreadExecutor::impl_staticGetSupportedServiceNames()
{
- uno::Sequence< OUString > aRet(2);
- aRet[0] = "com.sun.star.thread.MainThreadExecutor";
- aRet[1] = "com.sun.star.comp.thread.MainThreadExecutor";
- return aRet;
+ return
+ {
+ "com.sun.star.thread.MainThreadExecutor",
+ "com.sun.star.comp.thread.MainThreadExecutor"
+ }
}