summaryrefslogtreecommitdiff
path: root/connectivity/source/manager/mdrivermanager.cxx
diff options
context:
space:
mode:
authorMike Kaganski <mike.kaganski@collabora.com>2021-10-28 21:15:12 +0300
committerMike Kaganski <mike.kaganski@collabora.com>2021-10-29 10:31:51 +0200
commit089dbfda13bbc43ef2bc4b4c6f2cb06163545c2d (patch)
tree81d9fc1a0ca0805eb71c67189e6ddb5c4e90bf19 /connectivity/source/manager/mdrivermanager.cxx
parent5661f257f9edd8bc80bb9dc62855d6bbe88a541f (diff)
Prepare for removal of non-const operator[] from Sequence in connectivity
Change-Id: If92f9af5e248f4b066359fe043adf221102e8561 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/124353 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'connectivity/source/manager/mdrivermanager.cxx')
-rw-r--r--connectivity/source/manager/mdrivermanager.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/connectivity/source/manager/mdrivermanager.cxx b/connectivity/source/manager/mdrivermanager.cxx
index c48d3b9c06f9..bef3c8d74eaa 100644
--- a/connectivity/source/manager/mdrivermanager.cxx
+++ b/connectivity/source/manager/mdrivermanager.cxx
@@ -186,8 +186,8 @@ Any SAL_CALL ODriverEnumeration::nextElement( )
css::configuration::theDefaultProvider::get( _rContext ) );
// one argument for creating the node access: the path to the configuration node
- Sequence< Any > aCreationArgs(1);
- aCreationArgs[0] <<= NamedValue( "nodepath", makeAny( OUString("org.openoffice.Office.DataAccess/DriverManager") ) );
+ Sequence< Any > aCreationArgs{ Any(NamedValue(
+ "nodepath", makeAny( OUString("org.openoffice.Office.DataAccess/DriverManager") ) )) };
// create the node access
Reference< XNameAccess > xDriverManagerNode(