summaryrefslogtreecommitdiff
path: root/dbaccess/source/ui
diff options
context:
space:
mode:
Diffstat (limited to 'dbaccess/source/ui')
-rw-r--r--dbaccess/source/ui/app/AppController.cxx3
-rw-r--r--dbaccess/source/ui/querydesign/querycontroller.cxx6
-rw-r--r--dbaccess/source/ui/relationdesign/RelationController.cxx3
-rw-r--r--dbaccess/source/ui/tabledesign/TableController.cxx3
4 files changed, 5 insertions, 10 deletions
diff --git a/dbaccess/source/ui/app/AppController.cxx b/dbaccess/source/ui/app/AppController.cxx
index 54ccc81c44c8..4fca0c824b0a 100644
--- a/dbaccess/source/ui/app/AppController.cxx
+++ b/dbaccess/source/ui/app/AppController.cxx
@@ -169,8 +169,7 @@ OUString OApplicationController::getImplementationName_Static() throw( RuntimeEx
Sequence< OUString> OApplicationController::getSupportedServiceNames_Static() throw( RuntimeException )
{
- Sequence< OUString> aSupported(1);
- aSupported[0] = "com.sun.star.sdb.application.DefaultViewController";
+ Sequence<OUString> aSupported { "com.sun.star.sdb.application.DefaultViewController" };
return aSupported;
}
diff --git a/dbaccess/source/ui/querydesign/querycontroller.cxx b/dbaccess/source/ui/querydesign/querycontroller.cxx
index ff47a4c63196..52c76f11ab38 100644
--- a/dbaccess/source/ui/querydesign/querycontroller.cxx
+++ b/dbaccess/source/ui/querydesign/querycontroller.cxx
@@ -120,8 +120,7 @@ namespace dbaui
}
static Sequence< OUString > getSupportedServiceNames_Static() throw( RuntimeException )
{
- Sequence< OUString> aSupported(1);
- aSupported.getArray()[0] = "com.sun.star.sdb.ViewDesign";
+ Sequence<OUString> aSupported { "com.sun.star.sdb.ViewDesign" };
return aSupported;
}
static Reference< XInterface > SAL_CALL Create(const Reference< XMultiServiceFactory >& _rM)
@@ -311,8 +310,7 @@ OUString OQueryController::getImplementationName_Static() throw( RuntimeExceptio
Sequence< OUString> OQueryController::getSupportedServiceNames_Static() throw( RuntimeException )
{
- Sequence< OUString> aSupported(1);
- aSupported.getArray()[0] = "com.sun.star.sdb.QueryDesign";
+ Sequence<OUString> aSupported { "com.sun.star.sdb.QueryDesign" };
return aSupported;
}
diff --git a/dbaccess/source/ui/relationdesign/RelationController.cxx b/dbaccess/source/ui/relationdesign/RelationController.cxx
index bb8c09feee30..29a71be5b36b 100644
--- a/dbaccess/source/ui/relationdesign/RelationController.cxx
+++ b/dbaccess/source/ui/relationdesign/RelationController.cxx
@@ -103,8 +103,7 @@ OUString ORelationController::getImplementationName_Static() throw( RuntimeExcep
Sequence< OUString> ORelationController::getSupportedServiceNames_Static() throw( RuntimeException )
{
- Sequence< OUString> aSupported(1);
- aSupported[0] = "com.sun.star.sdb.RelationDesign";
+ Sequence<OUString> aSupported { "com.sun.star.sdb.RelationDesign" };
return aSupported;
}
diff --git a/dbaccess/source/ui/tabledesign/TableController.cxx b/dbaccess/source/ui/tabledesign/TableController.cxx
index b923b2fef0a4..26e48f5e5b0f 100644
--- a/dbaccess/source/ui/tabledesign/TableController.cxx
+++ b/dbaccess/source/ui/tabledesign/TableController.cxx
@@ -123,8 +123,7 @@ OUString OTableController::getImplementationName_Static() throw( RuntimeExceptio
Sequence< OUString> OTableController::getSupportedServiceNames_Static() throw( RuntimeException )
{
- Sequence< OUString> aSupported(1);
- aSupported[0] = "com.sun.star.sdb.TableDesign";
+ Sequence<OUString> aSupported { "com.sun.star.sdb.TableDesign" };
return aSupported;
}