summaryrefslogtreecommitdiffstats
path: root/basic
diff options
context:
space:
mode:
authorvgeof <vivians88@hotmail.fr>2020-05-09 18:57:44 -0300
committerMichael Stahl <michael.stahl@cib.de>2020-05-19 09:40:05 +0200
commit8209c2569f5726f9ed29f75d30efdccb94f98fe5 (patch)
tree934892f2d6bd32d835d42857e17311e7584509e1 /basic
parenttdf#132642 sw layout: try2 emulate table kept-with-next not splitting (diff)
downloadcore-8209c2569f5726f9ed29f75d30efdccb94f98fe5.tar.gz
core-8209c2569f5726f9ed29f75d30efdccb94f98fe5.zip
tdf#88205 EasyHack change css::uno::Sequence initializations
1st commit. Use initializer lists for uno::Sequence in 4 files Change-Id: I0192b4b8f023fb8d606dff81c4b910c8c7c2a9a2 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/93900 Reviewed-by: Michael Stahl <michael.stahl@cib.de> Tested-by: Jenkins
Diffstat (limited to 'basic')
-rw-r--r--basic/source/classes/sbunoobj.cxx8
1 files changed, 2 insertions, 6 deletions
diff --git a/basic/source/classes/sbunoobj.cxx b/basic/source/classes/sbunoobj.cxx
index 15e8f6b91154..dc3e97619c73 100644
--- a/basic/source/classes/sbunoobj.cxx
+++ b/basic/source/classes/sbunoobj.cxx
@@ -3236,9 +3236,7 @@ void VBAConstantHelper::init()
if ( isInited )
return;
- Sequence< TypeClass > types(1);
- types[ 0 ] = TypeClass_CONSTANTS;
- Reference< XTypeDescriptionEnumeration > xEnum = getTypeDescriptorEnumeration( "ooo.vba", types, TypeDescriptionSearchDepth_INFINITE );
+ Reference< XTypeDescriptionEnumeration > xEnum = getTypeDescriptorEnumeration( "ooo.vba", {TypeClass_CONSTANTS}, TypeDescriptionSearchDepth_INFINITE );
if ( !xEnum.is())
{
@@ -3922,9 +3920,7 @@ static Reference< XInterface > createAllListenerAdapter
Reference< XInvocation > xInvocationToAllListenerMapper =
new InvocationToAllListenerMapper(xListenerType, xListener, Helper);
Type aListenerType( xListenerType->getTypeClass(), xListenerType->getName() );
- Sequence<Type> arg2(1);
- arg2[0] = aListenerType;
- xAdapter = xInvocationAdapterFactory->createAdapter( xInvocationToAllListenerMapper, arg2 );
+ xAdapter = xInvocationAdapterFactory->createAdapter( xInvocationToAllListenerMapper, {aListenerType} );
}
return xAdapter;
}