summaryrefslogtreecommitdiff
path: root/connectivity
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-11-16 09:23:41 +0200
committerNoel Grandin <noelgrandin@gmail.com>2015-11-16 08:35:42 +0000
commit8569c6d0ad70c32a08774fa6f5ec25b465ea98ee (patch)
tree3287608f4bb3170cc609b64c70d8d5e806c83b46 /connectivity
parent57b4c4bcb0cb3c48190670b4c46ab9e92a489729 (diff)
use initialiser list for Sequence<OUString>
Change-Id: Ia5e47261d1fc6fac2d046656c05a1c5eedb07e02 Reviewed-on: https://gerrit.libreoffice.org/19978 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'connectivity')
-rw-r--r--connectivity/source/drivers/file/FConnection.cxx8
1 files changed, 2 insertions, 6 deletions
diff --git a/connectivity/source/drivers/file/FConnection.cxx b/connectivity/source/drivers/file/FConnection.cxx
index 4c60592ae90d..fe5c84e424fc 100644
--- a/connectivity/source/drivers/file/FConnection.cxx
+++ b/connectivity/source/drivers/file/FConnection.cxx
@@ -171,9 +171,7 @@ void OConnection::construct(const OUString& url,const Sequence< PropertyValue >&
}
// set fields to fetch
- Sequence< OUString > aProps(1);
- OUString* pProps = aProps.getArray();
- pProps[ 0 ] = "Title";
+ Sequence< OUString > aProps { "Title" };
try
{
@@ -398,9 +396,7 @@ Reference< XTablesSupplier > OConnection::createCatalog()
Reference< XDynamicResultSet > OConnection::getDir() const
{
Reference<XDynamicResultSet> xContent;
- Sequence< OUString > aProps(1);
- OUString* pProps = aProps.getArray();
- pProps[ 0 ] = "Title";
+ Sequence< OUString > aProps { "Title" };
try
{
Reference<XContentIdentifier> xIdent = getContent()->getIdentifier();