summaryrefslogtreecommitdiff
path: root/dbaccess/source/ui
diff options
context:
space:
mode:
authorNoel Grandin <noelgrandin@gmail.com>2015-11-15 12:22:28 +0200
committerNoel Grandin <noelgrandin@gmail.com>2015-11-15 12:18:55 +0000
commit25aec383f95fded43b3fe5fc588b4ebdc6d7d272 (patch)
tree846cce228d7ff120abc40b7767b251c2e04b2a30 /dbaccess/source/ui
parent35f5833ca35dc170b67ed9f8e288302eb06eb972 (diff)
use initialiser for Sequence<OUString>
replaced using: git grep -lP 'Sequence.*OUString.*\(\s*1\s*\)' | xargs perl -0777 -pi -e "s/Sequence<\s*OUString\s*> (\w+)\(\s*1\s*\); .*\[0\] = (\S+);/Sequence<OUString> \1 { \2 };/g" Change-Id: I20ad0489da887a9712982531c3b127339bb8b3b9 Reviewed-on: https://gerrit.libreoffice.org/19969 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
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;
}