summaryrefslogtreecommitdiff
path: root/dbaccess/source/filter/xml/xmlTable.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-07-25 09:34:01 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-07-25 12:03:17 +0200
commitf74da1315a5b2ec232a66944e41ff90231b383be (patch)
tree60d464c45df3531013642d61cbc8302ac815a1ae /dbaccess/source/filter/xml/xmlTable.cxx
parent04a6a5d5cdc6889c6f0e41b3df537f59baeee9f9 (diff)
use more comphelper::InitAnyPropertySequence
Found with: git grep -n -A10 'Sequence.*Any' -- *.cxx | grep -B5 -w PropertyValueProvider and: git grep -n 'Sequence.*Any.*( *&' Change-Id: Icb18c98bdd3f8352817e443ff78de5df042859ad Reviewed-on: https://gerrit.libreoffice.org/40389 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'dbaccess/source/filter/xml/xmlTable.cxx')
-rw-r--r--dbaccess/source/filter/xml/xmlTable.cxx16
1 files changed, 6 insertions, 10 deletions
diff --git a/dbaccess/source/filter/xml/xmlTable.cxx b/dbaccess/source/filter/xml/xmlTable.cxx
index ceb86414d249..b6ca98b0d84a 100644
--- a/dbaccess/source/filter/xml/xmlTable.cxx
+++ b/dbaccess/source/filter/xml/xmlTable.cxx
@@ -31,6 +31,7 @@
#include <com/sun/star/ucb/XCommandEnvironment.hpp>
#include <com/sun/star/sdbcx/XColumnsSupplier.hpp>
#include <comphelper/namecontainer.hxx>
+#include <comphelper/propertysequence.hxx>
namespace dbaxml
{
@@ -87,16 +88,11 @@ OXMLTable::OXMLTable( ODBFilter& _rImport
break;
}
}
- Sequence< Any > aArguments(2);
- PropertyValue aValue;
- // set as folder
- aValue.Name = "Name";
- aValue.Value <<= m_sName;
- aArguments[0] <<= aValue;
- //parent
- aValue.Name = "Parent";
- aValue.Value <<= m_xParentContainer;
- aArguments[1] <<= aValue;
+ uno::Sequence<uno::Any> aArguments(comphelper::InitAnyPropertySequence(
+ {
+ {"Name", uno::Any(m_sName)}, // set as folder
+ {"Parent", uno::Any(m_xParentContainer)}
+ }));
m_xTable.set(
GetOwnImport().GetComponentContext()->getServiceManager()->createInstanceWithArgumentsAndContext(m_sServiceName,aArguments, GetOwnImport().GetComponentContext()),
UNO_QUERY);