summaryrefslogtreecommitdiff
path: root/dbaccess/source/ui/uno
diff options
context:
space:
mode:
authorNoel Grandin <noelgrandin@gmail.com>2015-11-15 12:17:19 +0200
committerNoel Grandin <noelgrandin@gmail.com>2015-11-15 11:31:23 +0000
commit54d22957bc241fc5867fa1c720cf1266133e4e90 (patch)
treea94c9008ccbe953226a479a875e01119d77d9402 /dbaccess/source/ui/uno
parent8e234c5b7d5bae66c544e581bee5770f3f83dd81 (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 'dbaccess/source/ui/uno')
-rw-r--r--dbaccess/source/ui/uno/AdvancedSettingsDlg.cxx3
-rw-r--r--dbaccess/source/ui/uno/DBTypeWizDlg.cxx3
-rw-r--r--dbaccess/source/ui/uno/DBTypeWizDlgSetup.cxx3
-rw-r--r--dbaccess/source/ui/uno/TableFilterDlg.cxx3
-rw-r--r--dbaccess/source/ui/uno/UserSettingsDlg.cxx3
-rw-r--r--dbaccess/source/ui/uno/admindlg.cxx3
-rw-r--r--dbaccess/source/ui/uno/copytablewizard.cxx3
-rw-r--r--dbaccess/source/ui/uno/unosqlmessage.cxx3
8 files changed, 8 insertions, 16 deletions
diff --git a/dbaccess/source/ui/uno/AdvancedSettingsDlg.cxx b/dbaccess/source/ui/uno/AdvancedSettingsDlg.cxx
index 412397f34211..300dac9ad222 100644
--- a/dbaccess/source/ui/uno/AdvancedSettingsDlg.cxx
+++ b/dbaccess/source/ui/uno/AdvancedSettingsDlg.cxx
@@ -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;
}
diff --git a/dbaccess/source/ui/uno/DBTypeWizDlg.cxx b/dbaccess/source/ui/uno/DBTypeWizDlg.cxx
index d39aec3906cd..c8228a01f55a 100644
--- a/dbaccess/source/ui/uno/DBTypeWizDlg.cxx
+++ b/dbaccess/source/ui/uno/DBTypeWizDlg.cxx
@@ -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;
}
diff --git a/dbaccess/source/ui/uno/DBTypeWizDlgSetup.cxx b/dbaccess/source/ui/uno/DBTypeWizDlgSetup.cxx
index d4547ba8cb97..26f34a031b1b 100644
--- a/dbaccess/source/ui/uno/DBTypeWizDlgSetup.cxx
+++ b/dbaccess/source/ui/uno/DBTypeWizDlgSetup.cxx
@@ -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;
}
diff --git a/dbaccess/source/ui/uno/TableFilterDlg.cxx b/dbaccess/source/ui/uno/TableFilterDlg.cxx
index 203f924e9a2d..4810894a97db 100644
--- a/dbaccess/source/ui/uno/TableFilterDlg.cxx
+++ b/dbaccess/source/ui/uno/TableFilterDlg.cxx
@@ -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;
}
diff --git a/dbaccess/source/ui/uno/UserSettingsDlg.cxx b/dbaccess/source/ui/uno/UserSettingsDlg.cxx
index 22b66f5b59e8..96f4781c3643 100644
--- a/dbaccess/source/ui/uno/UserSettingsDlg.cxx
+++ b/dbaccess/source/ui/uno/UserSettingsDlg.cxx
@@ -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;
}
diff --git a/dbaccess/source/ui/uno/admindlg.cxx b/dbaccess/source/ui/uno/admindlg.cxx
index 9b854eb425ca..1366ed7e8f9c 100644
--- a/dbaccess/source/ui/uno/admindlg.cxx
+++ b/dbaccess/source/ui/uno/admindlg.cxx
@@ -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;
}
diff --git a/dbaccess/source/ui/uno/copytablewizard.cxx b/dbaccess/source/ui/uno/copytablewizard.cxx
index 8fd501275a64..177d22140c2c 100644
--- a/dbaccess/source/ui/uno/copytablewizard.cxx
+++ b/dbaccess/source/ui/uno/copytablewizard.cxx
@@ -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;
}
diff --git a/dbaccess/source/ui/uno/unosqlmessage.cxx b/dbaccess/source/ui/uno/unosqlmessage.cxx
index 49b3d8310674..554a12ae83ad 100644
--- a/dbaccess/source/ui/uno/unosqlmessage.cxx
+++ b/dbaccess/source/ui/uno/unosqlmessage.cxx
@@ -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;
}