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>
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -198,8 +198,7 @@ CanvasFactory::CanvasFactory( Reference<XComponentContext> const & xContext ) :
|
||||
{
|
||||
// Ugh. Looks like configuration is borked. Fake minimal
|
||||
// setup.
|
||||
Sequence<OUString> aServices(1);
|
||||
aServices[0] = "com.sun.star.comp.rendering.Canvas.VCL";
|
||||
Sequence<OUString> aServices { "com.sun.star.comp.rendering.Canvas.VCL" };
|
||||
m_aAvailableImplementations.push_back( std::make_pair(OUString("com.sun.star.rendering.Canvas"),
|
||||
aServices) );
|
||||
|
||||
|
||||
@@ -125,8 +125,7 @@ sal_Bool ChartToolbarController::supportsService(OUString const & ServiceName)
|
||||
css::uno::Sequence<OUString> ChartToolbarController::getSupportedServiceNames()
|
||||
throw (css::uno::RuntimeException, std::exception)
|
||||
{
|
||||
css::uno::Sequence<OUString> aServiceNames(1);
|
||||
aServiceNames[0] = "com.sun.star.frame.ToolbarController";
|
||||
css::uno::Sequence<OUString> aServiceNames { "com.sun.star.frame.ToolbarController" };
|
||||
return aServiceNames;
|
||||
}
|
||||
|
||||
|
||||
@@ -139,8 +139,7 @@ sal_Bool ChartPanelFactory::supportsService(OUString const & ServiceName)
|
||||
css::uno::Sequence<OUString> ChartPanelFactory::getSupportedServiceNames()
|
||||
throw (css::uno::RuntimeException, std::exception)
|
||||
{
|
||||
css::uno::Sequence<OUString> aServiceNames(1);
|
||||
aServiceNames[0] = "com.sun.star.ui.UIElementFactory";
|
||||
css::uno::Sequence<OUString> aServiceNames { "com.sun.star.ui.UIElementFactory" };
|
||||
return aServiceNames;
|
||||
}
|
||||
|
||||
|
||||
@@ -268,8 +268,7 @@ MailMergeCfg_Impl::MailMergeCfg_Impl() :
|
||||
utl::ConfigItem("Office.Writer/MailMergeWizard"),
|
||||
bIsEmailSupported(false)
|
||||
{
|
||||
Sequence<OUString> aNames(1);
|
||||
aNames.getArray()[0] = "EMailSupported";
|
||||
Sequence<OUString> aNames { "EMailSupported" };
|
||||
const Sequence< Any > aValues = GetProperties(aNames);
|
||||
const Any* pValues = aValues.getConstArray();
|
||||
if(aValues.getLength() && pValues[0].hasValue())
|
||||
|
||||
@@ -256,8 +256,7 @@ OUString ODBExport::getImplementationName_Static()
|
||||
css::uno::Sequence<OUString> ODBExport::getSupportedServiceNames_Static()
|
||||
throw (css::uno::RuntimeException)
|
||||
{
|
||||
css::uno::Sequence<OUString> s(1);
|
||||
s[0] = "com.sun.star.document.ExportFilter";
|
||||
css::uno::Sequence<OUString> s { "com.sun.star.document.ExportFilter" };
|
||||
return s;
|
||||
}
|
||||
|
||||
|
||||
@@ -233,8 +233,7 @@ OUString ODBFilter::getImplementationName_Static()
|
||||
css::uno::Sequence<OUString> ODBFilter::getSupportedServiceNames_Static()
|
||||
throw (css::uno::RuntimeException)
|
||||
{
|
||||
css::uno::Sequence<OUString> s(1);
|
||||
s[0] = "com.sun.star.document.ImportFilter";
|
||||
css::uno::Sequence<OUString> s { "com.sun.star.document.ImportFilter" };
|
||||
return s;
|
||||
}
|
||||
|
||||
|
||||
@@ -85,8 +85,7 @@ OUString SbaExternalSourceBrowser::getImplementationName_Static() throw(RuntimeE
|
||||
|
||||
css::uno::Sequence<OUString> SbaExternalSourceBrowser::getSupportedServiceNames_Static() throw(RuntimeException)
|
||||
{
|
||||
css::uno::Sequence<OUString> aSupported(1);
|
||||
aSupported[0] = "com.sun.star.sdb.FormGridView";
|
||||
css::uno::Sequence<OUString> aSupported { "com.sun.star.sdb.FormGridView" };
|
||||
return aSupported;
|
||||
}
|
||||
|
||||
|
||||
@@ -197,8 +197,7 @@ OUString SbaTableQueryBrowser::getImplementationName_Static() throw(RuntimeExcep
|
||||
|
||||
css::uno::Sequence<OUString> SbaTableQueryBrowser::getSupportedServiceNames_Static() throw(RuntimeException)
|
||||
{
|
||||
css::uno::Sequence<OUString> aSupported(1);
|
||||
aSupported[0] = "com.sun.star.sdb.DataSourceBrowser";
|
||||
css::uno::Sequence<OUString> aSupported { "com.sun.star.sdb.DataSourceBrowser" };
|
||||
return aSupported;
|
||||
}
|
||||
|
||||
|
||||
@@ -97,8 +97,7 @@ namespace dbaui
|
||||
|
||||
css::uno::Sequence<OUString> OAdvancedSettingsDialog::getSupportedServiceNames_Static() throw(RuntimeException)
|
||||
{
|
||||
css::uno::Sequence<OUString> aSupported(1);
|
||||
aSupported[0] = "com.sun.star.sdb.AdvancedDatabaseSettingsDialog";
|
||||
css::uno::Sequence<OUString> aSupported { "com.sun.star.sdb.AdvancedDatabaseSettingsDialog" };
|
||||
return aSupported;
|
||||
}
|
||||
|
||||
|
||||
@@ -69,8 +69,7 @@ css::uno::Sequence<OUString> SAL_CALL ODBTypeWizDialog::getSupportedServiceNames
|
||||
|
||||
css::uno::Sequence<OUString> ODBTypeWizDialog::getSupportedServiceNames_Static() throw(RuntimeException)
|
||||
{
|
||||
css::uno::Sequence<OUString> aSupported(1);
|
||||
aSupported[0] = "com.sun.star.sdb.DataSourceTypeChangeDialog";
|
||||
css::uno::Sequence<OUString> aSupported { "com.sun.star.sdb.DataSourceTypeChangeDialog" };
|
||||
return aSupported;
|
||||
}
|
||||
|
||||
|
||||
@@ -84,8 +84,7 @@ css::uno::Sequence<OUString> SAL_CALL ODBTypeWizDialogSetup::getSupportedService
|
||||
|
||||
css::uno::Sequence<OUString> ODBTypeWizDialogSetup::getSupportedServiceNames_Static() throw(RuntimeException)
|
||||
{
|
||||
css::uno::Sequence<OUString> aSupported(1);
|
||||
aSupported[0] = "com.sun.star.sdb.DatabaseWizardDialog";
|
||||
css::uno::Sequence<OUString> aSupported { "com.sun.star.sdb.DatabaseWizardDialog" };
|
||||
return aSupported;
|
||||
}
|
||||
|
||||
|
||||
@@ -69,8 +69,7 @@ css::uno::Sequence<OUString> SAL_CALL OTableFilterDialog::getSupportedServiceNam
|
||||
|
||||
css::uno::Sequence<OUString> OTableFilterDialog::getSupportedServiceNames_Static() throw(RuntimeException)
|
||||
{
|
||||
css::uno::Sequence<OUString> aSupported(1);
|
||||
aSupported[0] = "com.sun.star.sdb.TableFilterDialog";
|
||||
css::uno::Sequence<OUString> aSupported { "com.sun.star.sdb.TableFilterDialog" };
|
||||
return aSupported;
|
||||
}
|
||||
|
||||
|
||||
@@ -69,8 +69,7 @@ css::uno::Sequence<OUString> SAL_CALL OUserSettingsDialog::getSupportedServiceNa
|
||||
|
||||
css::uno::Sequence<OUString> OUserSettingsDialog::getSupportedServiceNames_Static() throw(RuntimeException)
|
||||
{
|
||||
css::uno::Sequence<OUString> aSupported(1);
|
||||
aSupported[0] = "com.sun.star.sdb.UserAdministrationDialog";
|
||||
css::uno::Sequence<OUString> aSupported { "com.sun.star.sdb.UserAdministrationDialog" };
|
||||
return aSupported;
|
||||
}
|
||||
|
||||
|
||||
@@ -69,8 +69,7 @@ css::uno::Sequence<OUString> SAL_CALL ODataSourcePropertyDialog::getSupportedSer
|
||||
|
||||
css::uno::Sequence<OUString> ODataSourcePropertyDialog::getSupportedServiceNames_Static() throw(RuntimeException)
|
||||
{
|
||||
css::uno::Sequence<OUString> aSupported(1);
|
||||
aSupported[0] = "com.sun.star.sdb.DatasourceAdministrationDialog";
|
||||
css::uno::Sequence<OUString> aSupported { "com.sun.star.sdb.DatasourceAdministrationDialog" };
|
||||
return aSupported;
|
||||
}
|
||||
|
||||
|
||||
@@ -430,8 +430,7 @@ css::uno::Sequence<OUString> SAL_CALL CopyTableWizard::getSupportedServiceNames(
|
||||
|
||||
css::uno::Sequence<OUString> CopyTableWizard::getSupportedServiceNames_Static() throw(RuntimeException)
|
||||
{
|
||||
css::uno::Sequence<OUString> aSupported(1);
|
||||
aSupported.getArray()[0] = "com.sun.star.sdb.application.CopyTableWizard";
|
||||
css::uno::Sequence<OUString> aSupported { "com.sun.star.sdb.application.CopyTableWizard" };
|
||||
return aSupported;
|
||||
}
|
||||
|
||||
|
||||
@@ -80,8 +80,7 @@ css::uno::Sequence<OUString> SAL_CALL OSQLMessageDialog::getSupportedServiceName
|
||||
|
||||
css::uno::Sequence<OUString> OSQLMessageDialog::getSupportedServiceNames_Static() throw(RuntimeException)
|
||||
{
|
||||
css::uno::Sequence<OUString> aSupported(1);
|
||||
aSupported.getArray()[0] = "com.sun.star.sdb.ErrorMessageDialog";
|
||||
css::uno::Sequence<OUString> aSupported { "com.sun.star.sdb.ErrorMessageDialog" };
|
||||
return aSupported;
|
||||
}
|
||||
|
||||
|
||||
@@ -190,8 +190,7 @@ OUString Acceptor::getImplementationName()
|
||||
}
|
||||
Sequence<OUString> Acceptor::impl_getSupportedServiceNames()
|
||||
{
|
||||
Sequence<OUString> aSequence(1);
|
||||
aSequence[0] = "com.sun.star.office.Acceptor";
|
||||
Sequence<OUString> aSequence { "com.sun.star.office.Acceptor" };
|
||||
return aSequence;
|
||||
}
|
||||
Sequence<OUString> Acceptor::getSupportedServiceNames()
|
||||
|
||||
@@ -109,8 +109,7 @@ namespace abp
|
||||
|
||||
css::uno::Sequence<OUString> OABSPilotUno::getSupportedServiceNames_Static() throw(RuntimeException)
|
||||
{
|
||||
css::uno::Sequence<OUString> aSupported(1);
|
||||
aSupported[0] = "com.sun.star.ui.dialogs.AddressBookSourcePilot";
|
||||
css::uno::Sequence<OUString> aSupported { "com.sun.star.ui.dialogs.AddressBookSourcePilot" };
|
||||
return aSupported;
|
||||
}
|
||||
|
||||
|
||||
@@ -72,8 +72,7 @@ namespace pcr
|
||||
|
||||
css::uno::Sequence<OUString> MasterDetailLinkDialog::getSupportedServiceNames_static() throw(RuntimeException)
|
||||
{
|
||||
css::uno::Sequence<OUString> aSupported(1);
|
||||
aSupported[0] = "com.sun.star.form.MasterDetailLinkDialog";
|
||||
css::uno::Sequence<OUString> aSupported { "com.sun.star.form.MasterDetailLinkDialog" };
|
||||
return aSupported;
|
||||
}
|
||||
|
||||
|
||||
@@ -94,8 +94,7 @@ namespace pcr
|
||||
|
||||
css::uno::Sequence<OUString> OControlFontDialog::getSupportedServiceNames_static() throw(RuntimeException)
|
||||
{
|
||||
css::uno::Sequence<OUString> aSupported(1);
|
||||
aSupported[0] = "com.sun.star.form.ControlFontDialog";
|
||||
css::uno::Sequence<OUString> aSupported { "com.sun.star.form.ControlFontDialog" };
|
||||
return aSupported;
|
||||
}
|
||||
|
||||
|
||||
@@ -331,8 +331,7 @@ Reference<XInterface> SAL_CALL OComponent_CreateInstance( const Reference<XMulti
|
||||
|
||||
Sequence<OUString> OComponent_getSupportedServiceNames()
|
||||
{
|
||||
Sequence<OUString> aRet(1);
|
||||
aRet.getArray()[0] = SERVICE_NAME;//ODataInputStream_getImplementationName();
|
||||
Sequence<OUString> aRet { SERVICE_NAME;//ODataInputStream_getImplementationName() };
|
||||
|
||||
return aRet;
|
||||
}
|
||||
|
||||
@@ -568,8 +568,7 @@ extern "C"
|
||||
{
|
||||
if (rtl_str_compare(pImplName, FILTER_IMPL_NAME) == 0)
|
||||
{
|
||||
Sequence<OUString> serviceNames(1);
|
||||
serviceNames.getArray()[0] = FILTER_SERVICE_NAME;
|
||||
Sequence<OUString> serviceNames { FILTER_SERVICE_NAME };
|
||||
|
||||
css::uno::Reference<XSingleServiceFactory>
|
||||
xFactory(
|
||||
@@ -588,8 +587,7 @@ extern "C"
|
||||
}
|
||||
else if (rtl_str_compare(pImplName, TRANSFORMER_IMPL_NAME) == 0)
|
||||
{
|
||||
Sequence<OUString> serviceNames(1);
|
||||
serviceNames.getArray()[0] = TRANSFORMER_SERVICE_NAME;
|
||||
Sequence<OUString> serviceNames { TRANSFORMER_SERVICE_NAME };
|
||||
css::uno::Reference<XSingleServiceFactory>
|
||||
xFactory(
|
||||
createSingleFactory(
|
||||
|
||||
@@ -486,8 +486,7 @@ OUString ODataInputStream_getImplementationName()
|
||||
|
||||
Sequence<OUString> ODataInputStream_getSupportedServiceNames()
|
||||
{
|
||||
Sequence<OUString> aRet(1);
|
||||
aRet.getArray()[0] = "com.sun.star.io.DataInputStream";
|
||||
Sequence<OUString> aRet { "com.sun.star.io.DataInputStream" };
|
||||
return aRet;
|
||||
}
|
||||
|
||||
@@ -1152,8 +1151,7 @@ OUString OObjectOutputStream_getImplementationName()
|
||||
|
||||
Sequence<OUString> OObjectOutputStream_getSupportedServiceNames()
|
||||
{
|
||||
Sequence<OUString> aRet(1);
|
||||
aRet.getArray()[0] = "com.sun.star.io.ObjectOutputStream";
|
||||
Sequence<OUString> aRet { "com.sun.star.io.ObjectOutputStream" };
|
||||
return aRet;
|
||||
}
|
||||
|
||||
@@ -1456,8 +1454,7 @@ OUString OObjectInputStream_getImplementationName()
|
||||
|
||||
Sequence<OUString> OObjectInputStream_getSupportedServiceNames()
|
||||
{
|
||||
Sequence<OUString> aRet(1);
|
||||
aRet.getArray()[0] = "com.sun.star.io.ObjectInputStream";
|
||||
Sequence<OUString> aRet { "com.sun.star.io.ObjectInputStream" };
|
||||
return aRet;
|
||||
}
|
||||
|
||||
|
||||
@@ -450,8 +450,7 @@ OUString OMarkableOutputStream_getImplementationName()
|
||||
|
||||
Sequence<OUString> OMarkableOutputStream_getSupportedServiceNames()
|
||||
{
|
||||
Sequence<OUString> aRet(1);
|
||||
aRet.getArray()[0] = "com.sun.star.io.MarkableOutputStream";
|
||||
Sequence<OUString> aRet { "com.sun.star.io.MarkableOutputStream" };
|
||||
|
||||
return aRet;
|
||||
}
|
||||
@@ -945,8 +944,7 @@ OUString OMarkableInputStream_getImplementationName()
|
||||
|
||||
Sequence<OUString> OMarkableInputStream_getSupportedServiceNames()
|
||||
{
|
||||
Sequence<OUString> aRet(1);
|
||||
aRet.getArray()[0] = "com.sun.star.io.MarkableInputStream";
|
||||
Sequence<OUString> aRet { "com.sun.star.io.MarkableInputStream" };
|
||||
return aRet;
|
||||
}
|
||||
|
||||
|
||||
@@ -427,8 +427,7 @@ OUString OPipeImpl_getImplementationName()
|
||||
|
||||
Sequence<OUString> OPipeImpl_getSupportedServiceNames()
|
||||
{
|
||||
Sequence<OUString> aRet(1);
|
||||
aRet.getArray()[0] = "com.sun.star.io.Pipe";
|
||||
Sequence<OUString> aRet { "com.sun.star.io.Pipe" };
|
||||
return aRet;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -614,8 +614,7 @@ Reference < XInterface > SAL_CALL OMyPersistObject_CreateInstance(
|
||||
|
||||
Sequence<OUString> OMyPersistObject_getSupportedServiceNames( ) throw ()
|
||||
{
|
||||
Sequence<OUString> aRet(1);
|
||||
aRet.getArray()[0] = OMyPersistObject_getImplementationName();
|
||||
Sequence<OUString> aRet { OMyPersistObject_getImplementationName() };
|
||||
return aRet;
|
||||
}
|
||||
|
||||
|
||||
@@ -375,8 +375,7 @@ Reference < XInterface > SAL_CALL OMarkableOutputStreamTest_CreateInstance( cons
|
||||
|
||||
Sequence<OUString> OMarkableOutputStreamTest_getSupportedServiceNames() throw ()
|
||||
{
|
||||
Sequence<OUString> aRet(1);
|
||||
aRet.getArray()[0] = OMarkableOutputStreamTest_getImplementationName();
|
||||
Sequence<OUString> aRet { OMarkableOutputStreamTest_getImplementationName() };
|
||||
|
||||
return aRet;
|
||||
}
|
||||
@@ -647,8 +646,7 @@ Reference < XInterface > SAL_CALL OMarkableInputStreamTest_CreateInstance( const
|
||||
|
||||
Sequence<OUString> OMarkableInputStreamTest_getSupportedServiceNames() throw ()
|
||||
{
|
||||
Sequence<OUString> aRet(1);
|
||||
aRet.getArray()[0] = OMarkableInputStreamTest_getImplementationName();
|
||||
Sequence<OUString> aRet { OMarkableInputStreamTest_getImplementationName() };
|
||||
|
||||
return aRet;
|
||||
}
|
||||
|
||||
@@ -411,8 +411,7 @@ Reference < XInterface > SAL_CALL OPipeTest_CreateInstance( const Reference< XMu
|
||||
|
||||
Sequence<OUString> OPipeTest_getSupportedServiceNames() throw()
|
||||
{
|
||||
Sequence<OUString> aRet(1);
|
||||
aRet.getArray()[0] = OPipeTest_getServiceName();
|
||||
Sequence<OUString> aRet { OPipeTest_getServiceName() };
|
||||
|
||||
return aRet;
|
||||
}
|
||||
|
||||
@@ -57,8 +57,7 @@ using namespace ::com::sun::star::linguistic2;
|
||||
|
||||
static Sequence< OUString > getSupportedServiceNames_LangGuess_Impl()
|
||||
{
|
||||
Sequence<OUString> names(1);
|
||||
names[0] = SERVICENAME;
|
||||
Sequence<OUString> names { SERVICENAME };
|
||||
return names;
|
||||
}
|
||||
|
||||
|
||||
@@ -60,8 +60,7 @@ extern Reference< XInterface > SAL_CALL create_MyService1Impl(
|
||||
|
||||
static Sequence< OUString > getSupportedServiceNames_MyService2Impl()
|
||||
{
|
||||
Sequence<OUString> names(1);
|
||||
names[0] = "my_module.MyService2";
|
||||
Sequence<OUString> names { "my_module.MyService2" };
|
||||
return names;
|
||||
}
|
||||
|
||||
|
||||
@@ -566,8 +566,7 @@ sal_Bool SaxExpatParser::supportsService(const OUString& ServiceName) throw (std
|
||||
// XServiceInfo
|
||||
css::uno::Sequence< OUString > SaxExpatParser::getSupportedServiceNames() throw (std::exception)
|
||||
{
|
||||
css::uno::Sequence<OUString> seq(1);
|
||||
seq[0] = "com.sun.star.xml.sax.Parser";
|
||||
css::uno::Sequence<OUString> seq { "com.sun.star.xml.sax.Parser" };
|
||||
return seq;
|
||||
}
|
||||
|
||||
|
||||
@@ -1010,8 +1010,7 @@ sal_Bool SAXWriter::supportsService(const OUString& ServiceName) throw(std::exce
|
||||
// XServiceInfo
|
||||
Sequence< OUString > SAXWriter::getSupportedServiceNames() throw (std::exception)
|
||||
{
|
||||
Sequence<OUString> seq(1);
|
||||
seq[0] = "com.sun.star.xml.sax.Writer";
|
||||
Sequence<OUString> seq { "com.sun.star.xml.sax.Writer" };
|
||||
return seq;
|
||||
}
|
||||
|
||||
|
||||
@@ -1355,8 +1355,7 @@ sal_Bool FastSaxParser::supportsService( const OUString& ServiceName )
|
||||
uno::Sequence<OUString> FastSaxParser::getSupportedServiceNames()
|
||||
throw (uno::RuntimeException, std::exception)
|
||||
{
|
||||
Sequence<OUString> seq(1);
|
||||
seq[0] = "com.sun.star.xml.sax.FastParser";
|
||||
Sequence<OUString> seq { "com.sun.star.xml.sax.FastParser" };
|
||||
return seq;
|
||||
}
|
||||
|
||||
|
||||
@@ -2678,8 +2678,7 @@ sal_Int32 ScXMLImport::SetCurrencySymbol(const sal_Int32 nKey, const OUString& r
|
||||
sErrorMessage += sFormatString;
|
||||
sErrorMessage += " an Position ";
|
||||
sErrorMessage += OUString::number(rException.CheckPos);
|
||||
uno::Sequence<OUString> aSeq(1);
|
||||
aSeq[0] = sErrorMessage;
|
||||
uno::Sequence<OUString> aSeq { sErrorMessage };
|
||||
uno::Reference<xml::sax::XLocator> xLocator;
|
||||
SetError(XMLERROR_API | XMLERROR_FLAG_ERROR, aSeq, rException.Message, xLocator);
|
||||
}
|
||||
|
||||
@@ -139,8 +139,7 @@ sal_Bool ScPanelFactory::supportsService(OUString const & ServiceName)
|
||||
css::uno::Sequence<OUString> ScPanelFactory::getSupportedServiceNames()
|
||||
throw (css::uno::RuntimeException, std::exception)
|
||||
{
|
||||
css::uno::Sequence<OUString> aServiceNames(1);
|
||||
aServiceNames[0] = "com.sun.star.ui.UIElementFactory";
|
||||
css::uno::Sequence<OUString> aServiceNames { "com.sun.star.ui.UIElementFactory" };
|
||||
return aServiceNames;
|
||||
}
|
||||
|
||||
|
||||
@@ -39,8 +39,7 @@ sal_Bool ScExcelBiffDetect::supportsService( const OUString& aName ) throw (uno:
|
||||
|
||||
uno::Sequence<OUString> ScExcelBiffDetect::getSupportedServiceNames() throw (uno::RuntimeException, std::exception)
|
||||
{
|
||||
uno::Sequence<OUString> aNames(1);
|
||||
aNames[0] = "com.sun.star.frame.ExtendedTypeDetection";
|
||||
uno::Sequence<OUString> aNames { "com.sun.star.frame.ExtendedTypeDetection" };
|
||||
return aNames;
|
||||
}
|
||||
|
||||
|
||||
@@ -58,8 +58,7 @@ sal_Bool SAL_CALL ScPageObj::supportsService( const OUString& rServiceName )
|
||||
uno::Sequence<OUString> SAL_CALL ScPageObj::getSupportedServiceNames()
|
||||
throw(uno::RuntimeException, std::exception)
|
||||
{
|
||||
uno::Sequence<OUString> aRet(1);
|
||||
aRet[0] = "com.sun.star.sheet.SpreadsheetDrawPage";
|
||||
uno::Sequence<OUString> aRet { "com.sun.star.sheet.SpreadsheetDrawPage" };
|
||||
return aRet;
|
||||
}
|
||||
|
||||
|
||||
@@ -325,8 +325,7 @@ sal_Bool ScFilterDetect::supportsService( const OUString& sServiceName )
|
||||
css::uno::Sequence<OUString> ScFilterDetect::getSupportedServiceNames()
|
||||
throw (uno::RuntimeException, std::exception)
|
||||
{
|
||||
uno::Sequence<OUString> seqServiceNames(1);
|
||||
seqServiceNames.getArray()[0] = "com.sun.star.frame.ExtendedTypeDetection";
|
||||
uno::Sequence<OUString> seqServiceNames { "com.sun.star.frame.ExtendedTypeDetection" };
|
||||
return seqServiceNames;
|
||||
}
|
||||
|
||||
|
||||
@@ -1711,8 +1711,7 @@ Image AssistentDlgImpl::GetUiIconForCommand (const OUString& sCommandURL)
|
||||
xManager->getImageManager(),
|
||||
UNO_QUERY_THROW);
|
||||
|
||||
Sequence<OUString> aCommandList(1);
|
||||
aCommandList[0] = sCommandURL;
|
||||
Sequence<OUString> aCommandList { sCommandURL };
|
||||
Sequence<Reference<graphic::XGraphic> > xIconList (
|
||||
xImageManager->getImages(0,aCommandList));
|
||||
if ( ! xIconList.hasElements())
|
||||
|
||||
@@ -241,8 +241,7 @@ OUString CommandInfoProvider::RetrieveShortcutsFromConfiguration(
|
||||
{
|
||||
try
|
||||
{
|
||||
Sequence<OUString> aCommands(1);
|
||||
aCommands[0] = rsCommandName;
|
||||
Sequence<OUString> aCommands { rsCommandName };
|
||||
|
||||
Sequence<Any> aKeyCodes (rxConfiguration->getPreferredKeyEventsForCommandList(aCommands));
|
||||
if (aCommands.getLength() == 1)
|
||||
|
||||
@@ -314,8 +314,7 @@ OUString SAL_CALL LocaleBackend::getImplementationName()
|
||||
|
||||
uno::Sequence<OUString> SAL_CALL LocaleBackend::getBackendServiceNames()
|
||||
{
|
||||
uno::Sequence<OUString> aServiceNameList(1);
|
||||
aServiceNameList[0] = "com.sun.star.configuration.backend.LocaleBackend";
|
||||
uno::Sequence<OUString> aServiceNameList { "com.sun.star.configuration.backend.LocaleBackend" };
|
||||
return aServiceNameList ;
|
||||
}
|
||||
|
||||
|
||||
@@ -376,8 +376,7 @@ OUString SAL_CALL WinInetBackend::getImplementationName()
|
||||
|
||||
uno::Sequence<OUString> SAL_CALL WinInetBackend::getBackendServiceNames()
|
||||
{
|
||||
uno::Sequence<OUString> aServiceNameList(1);
|
||||
aServiceNameList[0] = "com.sun.star.configuration.backend.WinInetBackend";
|
||||
uno::Sequence<OUString> aServiceNameList { "com.sun.star.configuration.backend.WinInetBackend" };
|
||||
|
||||
return aServiceNameList ;
|
||||
}
|
||||
|
||||
@@ -1696,8 +1696,7 @@ private:
|
||||
getSupportedServiceNames()
|
||||
throw (css::uno::RuntimeException, std::exception) override
|
||||
{
|
||||
Sequence<OUString> s(1);
|
||||
s[0] = "com.sun.star.beans.Introspection";
|
||||
Sequence<OUString> s { "com.sun.star.beans.Introspection" };
|
||||
return s;
|
||||
}
|
||||
|
||||
|
||||
@@ -52,8 +52,7 @@ SvtFontSubstConfig::SvtFontSubstConfig() :
|
||||
bIsEnabled(false),
|
||||
pImpl(new SvtFontSubstConfig_Impl)
|
||||
{
|
||||
Sequence<OUString> aNames(1);
|
||||
aNames.getArray()[0] = cReplacement;
|
||||
Sequence<OUString> aNames { cReplacement };
|
||||
Sequence<Any> aValues = GetProperties(aNames);
|
||||
DBG_ASSERT(aValues.getConstArray()[0].hasValue(), "no value available");
|
||||
if(aValues.getConstArray()[0].hasValue())
|
||||
@@ -100,8 +99,7 @@ void SvtFontSubstConfig::Notify( const css::uno::Sequence< OUString >& )
|
||||
|
||||
void SvtFontSubstConfig::ImplCommit()
|
||||
{
|
||||
Sequence<OUString> aNames(1);
|
||||
aNames.getArray()[0] = cReplacement;
|
||||
Sequence<OUString> aNames { cReplacement };
|
||||
Sequence<Any> aValues(1);
|
||||
aValues.getArray()[0].setValue(&bIsEnabled, cppu::UnoType<bool>::get());
|
||||
PutProperties(aNames, aValues);
|
||||
|
||||
@@ -101,8 +101,7 @@ namespace {
|
||||
|
||||
css::uno::Sequence<OUString> SAL_CALL OAddressBookSourceDialogUno::getSupportedServiceNames() throw(RuntimeException, std::exception)
|
||||
{
|
||||
css::uno::Sequence<OUString> aSupported(1);
|
||||
aSupported.getArray()[0] = "com.sun.star.ui.AddressBookSourceDialog";
|
||||
css::uno::Sequence<OUString> aSupported { "com.sun.star.ui.AddressBookSourceDialog" };
|
||||
return aSupported;
|
||||
}
|
||||
|
||||
|
||||
@@ -151,8 +151,7 @@ sal_Bool SvBaseEventDescriptor::supportsService(const OUString& rServiceName)
|
||||
Sequence<OUString> SvBaseEventDescriptor::getSupportedServiceNames()
|
||||
throw(RuntimeException, std::exception)
|
||||
{
|
||||
Sequence<OUString> aSequence(1);
|
||||
aSequence[0] = sServiceName;
|
||||
Sequence<OUString> aSequence { sServiceName };
|
||||
|
||||
return aSequence;
|
||||
}
|
||||
|
||||
@@ -364,8 +364,7 @@ DECLARE_ODFEXPORT_TEST(testFdo79358, "fdo79358.odt")
|
||||
uno::Reference<container::XIndexReplace> xLevels(
|
||||
getProperty< uno::Reference<container::XIndexReplace> >(xTOCProps,
|
||||
"LevelParagraphStyles"));
|
||||
uno::Sequence<OUString> seq(1);
|
||||
seq[0] = "Heading";
|
||||
uno::Sequence<OUString> seq { "Heading" };
|
||||
CPPUNIT_ASSERT_EQUAL(uno::makeAny(seq), xLevels->getByIndex(1));
|
||||
CPPUNIT_ASSERT_EQUAL(uno::makeAny(uno::Sequence<OUString>()), xLevels->getByIndex(2));
|
||||
}
|
||||
|
||||
@@ -368,8 +368,7 @@ throw (beans::UnknownPropertyException, beans::PropertyVetoException,
|
||||
uno::RuntimeException, std::exception )
|
||||
{
|
||||
SolarMutexGuard aGuard;
|
||||
uno::Sequence<OUString> aPropertyNames(1);
|
||||
aPropertyNames.getArray()[0] = rPropertyName;
|
||||
uno::Sequence<OUString> aPropertyNames { rPropertyName };
|
||||
uno::Sequence<uno::Any> aValues(1);
|
||||
aValues.getArray()[0] = rValue;
|
||||
m_pImpl->SetPropertyValues_Impl( aPropertyNames, aValues );
|
||||
@@ -381,8 +380,7 @@ throw (beans::UnknownPropertyException, lang::WrappedTargetException,
|
||||
uno::RuntimeException, std::exception )
|
||||
{
|
||||
SolarMutexGuard aGuard;
|
||||
uno::Sequence<OUString> aPropertyNames(1);
|
||||
aPropertyNames.getArray()[0] = rPropertyName;
|
||||
uno::Sequence<OUString> aPropertyNames { rPropertyName };
|
||||
const uno::Sequence< uno::Any > aRet =
|
||||
m_pImpl->GetPropertyValues_Impl(aPropertyNames);
|
||||
return aRet.getConstArray()[0];
|
||||
|
||||
@@ -389,8 +389,7 @@ IMPL_LINK_TYPED(SwAddressListDialog, CreateHdl_Impl, Button*, pButton, void)
|
||||
Any aAny(&sDBURL, cppu::UnoType<decltype(sDBURL)>::get());
|
||||
xDataProperties->setPropertyValue("URL", aAny);
|
||||
//set the filter to the file name without extension
|
||||
uno::Sequence<OUString> aFilters(1);
|
||||
aFilters[0] = sNewName;
|
||||
uno::Sequence<OUString> aFilters { sNewName };
|
||||
aAny <<= aFilters;
|
||||
xDataProperties->setPropertyValue("TableFilter", aAny);
|
||||
|
||||
|
||||
@@ -1540,8 +1540,7 @@ void SwInsertDBColAutoPilot::ImplCommit()
|
||||
pSourceProps[1] >>= sCommand;
|
||||
if(sSource==aDBData.sDataSource && sCommand==aDBData.sCommand)
|
||||
{
|
||||
Sequence<OUString> aElements(1);
|
||||
aElements.getArray()[0] = pNames[nNode];
|
||||
Sequence<OUString> aElements { pNames[nNode] };
|
||||
ClearNodeElements(OUString(), aElements);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -323,8 +323,7 @@ void SwLabelConfig::SaveLabel( const OUString& rManufacturer,
|
||||
sPrefix += "/";
|
||||
sPrefix += pLabels[nLabel];
|
||||
sPrefix += "/";
|
||||
Sequence<OUString> aProperties(1);
|
||||
aProperties.getArray()[0] = sPrefix;
|
||||
Sequence<OUString> aProperties { sPrefix };
|
||||
aProperties.getArray()[0] += "Name";
|
||||
Sequence<Any> aValues = GetProperties( aProperties );
|
||||
const Any* pValues = aValues.getConstArray();
|
||||
|
||||
@@ -156,8 +156,7 @@ void SvtWriterFilterOptions_Impl::ImplCommit()
|
||||
{
|
||||
SvtAppFilterOptions_Impl::ImplCommit();
|
||||
|
||||
Sequence<OUString> aNames(1);
|
||||
aNames[0] = "Executable";
|
||||
Sequence<OUString> aNames { "Executable" };
|
||||
Sequence<Any> aValues(1);
|
||||
aValues[0] <<= bLoadExecutable;
|
||||
|
||||
@@ -168,8 +167,7 @@ void SvtWriterFilterOptions_Impl::Load()
|
||||
{
|
||||
SvtAppFilterOptions_Impl::Load();
|
||||
|
||||
Sequence<OUString> aNames(1);
|
||||
aNames[0] = "Executable";
|
||||
Sequence<OUString> aNames { "Executable" };
|
||||
|
||||
Sequence<Any> aValues = GetProperties(aNames);
|
||||
const Any* pValues = aValues.getConstArray();
|
||||
@@ -204,8 +202,7 @@ void SvtCalcFilterOptions_Impl::ImplCommit()
|
||||
{
|
||||
SvtAppFilterOptions_Impl::ImplCommit();
|
||||
|
||||
Sequence<OUString> aNames(1);
|
||||
aNames[0] = "Executable";
|
||||
Sequence<OUString> aNames { "Executable" };
|
||||
Sequence<Any> aValues(1);
|
||||
aValues[0] <<= bLoadExecutable;
|
||||
|
||||
@@ -216,8 +213,7 @@ void SvtCalcFilterOptions_Impl::Load()
|
||||
{
|
||||
SvtAppFilterOptions_Impl::Load();
|
||||
|
||||
Sequence<OUString> aNames(1);
|
||||
aNames[0] = "Executable";
|
||||
Sequence<OUString> aNames { "Executable" };
|
||||
|
||||
Sequence<Any> aValues = GetProperties(aNames);
|
||||
const Any* pValues = aValues.getConstArray();
|
||||
|
||||
@@ -84,8 +84,7 @@ std::vector<OUString> getContents(OUString const & url) {
|
||||
try {
|
||||
std::vector<OUString> cs;
|
||||
ucbhelper::Content c(content(url));
|
||||
css::uno::Sequence<OUString> args(1);
|
||||
args[0] = "Title";
|
||||
css::uno::Sequence<OUString> args { "Title" };
|
||||
css::uno::Reference<css::sdbc::XResultSet> res(
|
||||
c.createCursor(args),
|
||||
css::uno::UNO_SET_THROW);
|
||||
@@ -246,8 +245,7 @@ bool utl::UCBContentHelper::MakeFolder(
|
||||
{
|
||||
continue;
|
||||
}
|
||||
css::uno::Sequence<OUString> keys(1);
|
||||
keys[0] = "Title";
|
||||
css::uno::Sequence<OUString> keys { "Title" };
|
||||
css::uno::Sequence<css::uno::Any> values(1);
|
||||
values[0] <<= title;
|
||||
if (parent.insertNewContent(info[i].Type, keys, values, result))
|
||||
|
||||
@@ -2226,8 +2226,7 @@ Image VclBuilder::getCommandImage(const OUString& rCommand, bool bLarge,
|
||||
uno::Reference<ui::XImageManager> xDocImgMgr(xDocUICfgMgr->getImageManager(), uno::UNO_QUERY);
|
||||
|
||||
uno::Sequence< uno::Reference<graphic::XGraphic> > aGraphicSeq;
|
||||
uno::Sequence<OUString> aImageCmdSeq(1);
|
||||
aImageCmdSeq[0] = rCommand;
|
||||
uno::Sequence<OUString> aImageCmdSeq { rCommand };
|
||||
|
||||
aGraphicSeq = xDocImgMgr->getImages( nImageType, aImageCmdSeq );
|
||||
uno::Reference<graphic::XGraphic> xGraphic = aGraphicSeq[0];
|
||||
@@ -2248,8 +2247,7 @@ Image VclBuilder::getCommandImage(const OUString& rCommand, bool bLarge,
|
||||
uno::Sequence< uno::Reference<graphic::XGraphic> > aGraphicSeq;
|
||||
uno::Reference<ui::XImageManager> xModuleImageManager(xUICfgMgr->getImageManager(), uno::UNO_QUERY);
|
||||
|
||||
uno::Sequence<OUString> aImageCmdSeq(1);
|
||||
aImageCmdSeq[0] = rCommand;
|
||||
uno::Sequence<OUString> aImageCmdSeq { rCommand };
|
||||
|
||||
aGraphicSeq = xModuleImageManager->getImages(nImageType, aImageCmdSeq);
|
||||
|
||||
|
||||
@@ -219,8 +219,7 @@ static Reference<XNode> lcl_createElement( SvXMLImport& rImport,
|
||||
// both cases are illegal; raise warning (and use only local name)
|
||||
xElement = xDocument->createElement( rLocalName );
|
||||
{
|
||||
Sequence<OUString> aSeq(1);
|
||||
aSeq[0] = rLocalName;
|
||||
Sequence<OUString> aSeq { rLocalName };
|
||||
rImport.SetError(
|
||||
XMLERROR_FLAG_WARNING | XMLERROR_NAMESPACE_TROUBLE, aSeq );
|
||||
}
|
||||
|
||||
@@ -2255,14 +2255,12 @@ void SvXMLExport::StartElement(const OUString& rName,
|
||||
}
|
||||
catch (const SAXInvalidCharacterException& e)
|
||||
{
|
||||
Sequence<OUString> aPars(1);
|
||||
aPars[0] = rName;
|
||||
Sequence<OUString> aPars { rName };
|
||||
SetError( XMLERROR_SAX|XMLERROR_FLAG_WARNING, aPars, e.Message, nullptr );
|
||||
}
|
||||
catch (const SAXException& e)
|
||||
{
|
||||
Sequence<OUString> aPars(1);
|
||||
aPars[0] = rName;
|
||||
Sequence<OUString> aPars { rName };
|
||||
SetError( XMLERROR_SAX|XMLERROR_FLAG_ERROR|XMLERROR_FLAG_SEVERE,
|
||||
aPars, e.Message, nullptr );
|
||||
}
|
||||
@@ -2281,14 +2279,12 @@ void SvXMLExport::Characters(const OUString& rChars)
|
||||
}
|
||||
catch (const SAXInvalidCharacterException& e)
|
||||
{
|
||||
Sequence<OUString> aPars(1);
|
||||
aPars[0] = rChars;
|
||||
Sequence<OUString> aPars { rChars };
|
||||
SetError( XMLERROR_SAX|XMLERROR_FLAG_WARNING, aPars, e.Message, nullptr );
|
||||
}
|
||||
catch (const SAXException& e)
|
||||
{
|
||||
Sequence<OUString> aPars(1);
|
||||
aPars[0] = rChars;
|
||||
Sequence<OUString> aPars { rChars };
|
||||
SetError( XMLERROR_SAX|XMLERROR_FLAG_ERROR|XMLERROR_FLAG_SEVERE,
|
||||
aPars, e.Message, nullptr );
|
||||
}
|
||||
@@ -2328,8 +2324,7 @@ void SvXMLExport::EndElement(const OUString& rName,
|
||||
}
|
||||
catch (const SAXException& e)
|
||||
{
|
||||
Sequence<OUString> aPars(1);
|
||||
aPars[0] = rName;
|
||||
Sequence<OUString> aPars { rName };
|
||||
SetError( XMLERROR_SAX|XMLERROR_FLAG_ERROR|XMLERROR_FLAG_SEVERE,
|
||||
aPars, e.Message, nullptr );
|
||||
}
|
||||
|
||||
@@ -264,8 +264,7 @@ void XMLShapeStyleContext::FillPropertySet( const Reference< beans::XPropertySet
|
||||
}
|
||||
catch ( const ::com::sun::star::lang::IllegalArgumentException& e )
|
||||
{
|
||||
Sequence<OUString> aSeq(1);
|
||||
aSeq[0] = sStyleName;
|
||||
Sequence<OUString> aSeq { sStyleName };
|
||||
GetImport().SetError(
|
||||
XMLERROR_STYLE_PROP_VALUE | XMLERROR_FLAG_WARNING,
|
||||
aSeq, e.Message, nullptr );
|
||||
|
||||
@@ -492,8 +492,7 @@ bool SvXMLImportPropertyMapper::_FillPropertySet(
|
||||
// allowed to throw this exception
|
||||
if ( 0 == ( nPropFlags & MID_FLAG_PROPERTY_MAY_THROW ) )
|
||||
{
|
||||
Sequence<OUString> aSeq(1);
|
||||
aSeq[0] = rPropName;
|
||||
Sequence<OUString> aSeq { rPropName };
|
||||
rImport.SetError(
|
||||
XMLERROR_STYLE_PROP_VALUE | XMLERROR_FLAG_ERROR,
|
||||
aSeq, e.Message, nullptr );
|
||||
@@ -502,8 +501,7 @@ bool SvXMLImportPropertyMapper::_FillPropertySet(
|
||||
catch ( const UnknownPropertyException& e )
|
||||
{
|
||||
// unknown property: This is always an error!
|
||||
Sequence<OUString> aSeq(1);
|
||||
aSeq[0] = rPropName;
|
||||
Sequence<OUString> aSeq { rPropName };
|
||||
rImport.SetError(
|
||||
XMLERROR_STYLE_PROP_UNKNOWN | XMLERROR_FLAG_ERROR,
|
||||
aSeq, e.Message, nullptr );
|
||||
@@ -511,8 +509,7 @@ bool SvXMLImportPropertyMapper::_FillPropertySet(
|
||||
catch ( const PropertyVetoException& e )
|
||||
{
|
||||
// property veto: this shouldn't happen
|
||||
Sequence<OUString> aSeq(1);
|
||||
aSeq[0] = rPropName;
|
||||
Sequence<OUString> aSeq { rPropName };
|
||||
rImport.SetError(
|
||||
XMLERROR_STYLE_PROP_OTHER | XMLERROR_FLAG_ERROR,
|
||||
aSeq, e.Message, nullptr );
|
||||
@@ -520,8 +517,7 @@ bool SvXMLImportPropertyMapper::_FillPropertySet(
|
||||
catch ( const WrappedTargetException& e )
|
||||
{
|
||||
// wrapped target: this shouldn't happen either
|
||||
Sequence<OUString> aSeq(1);
|
||||
aSeq[0] = rPropName;
|
||||
Sequence<OUString> aSeq { rPropName };
|
||||
rImport.SetError(
|
||||
XMLERROR_STYLE_PROP_OTHER | XMLERROR_FLAG_ERROR,
|
||||
aSeq, e.Message, nullptr );
|
||||
@@ -709,8 +705,7 @@ bool SvXMLImportPropertyMapper::_FillTolerantMultiPropertySet(
|
||||
sal_Int32 nCount(aResults.getLength());
|
||||
for( sal_Int32 i = 0; i < nCount; ++i)
|
||||
{
|
||||
Sequence<OUString> aSeq(1);
|
||||
aSeq[0] = aResults[i].Name;
|
||||
Sequence<OUString> aSeq { aResults[i].Name };
|
||||
OUString sMessage;
|
||||
switch (aResults[i].Result)
|
||||
{
|
||||
|
||||
@@ -212,8 +212,7 @@ void XMLIndexTOCContext::StartElement(
|
||||
catch(const IllegalArgumentException& e)
|
||||
{
|
||||
// illegal argument? Then we can't accept indices here!
|
||||
Sequence<OUString> aSeq(1);
|
||||
aSeq[0] = GetLocalName();
|
||||
Sequence<OUString> aSeq { GetLocalName() };
|
||||
GetImport().SetError(
|
||||
XMLERROR_FLAG_ERROR | XMLERROR_NO_INDEX_ALLOWED_HERE,
|
||||
aSeq, e.Message, nullptr );
|
||||
|
||||
Reference in New Issue
Block a user