summaryrefslogtreecommitdiff
path: root/extensions
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2016-06-28 14:50:49 +0200
committerStephan Bergmann <sbergman@redhat.com>2016-06-28 14:50:49 +0200
commite3e79246cb7dd28a8b3511cefd0c41cf19b3e7de (patch)
tree9618767e06667cf41217e68fef035d4f4a29782d /extensions
parentc63ae748b301db1f4996b43f6faf4bb317c37467 (diff)
Simplify some PutProperties calls
Change-Id: Idf91592e6cf34b5591f221c3c5bdc937bbe46014
Diffstat (limited to 'extensions')
-rw-r--r--extensions/source/bibliography/bibconfig.cxx26
1 files changed, 7 insertions, 19 deletions
diff --git a/extensions/source/bibliography/bibconfig.cxx b/extensions/source/bibliography/bibconfig.cxx
index 3661903d9219..9b59d388ac4d 100644
--- a/extensions/source/bibliography/bibconfig.cxx
+++ b/extensions/source/bibliography/bibconfig.cxx
@@ -220,25 +220,13 @@ void BibConfig::Notify( const css::uno::Sequence<OUString>& )
void BibConfig::ImplCommit()
{
- const Sequence<OUString> aPropertyNames = GetPropertyNames();
- Sequence<Any> aValues(aPropertyNames.getLength());
- Any* pValues = aValues.getArray();
-
- for(int nProp = 0; nProp < aPropertyNames.getLength(); nProp++)
- {
- switch(nProp)
- {
- case 0: pValues[nProp] <<= sDataSource; break;
- case 1: pValues[nProp] <<= sTableOrQuery; break;
- case 2: pValues[nProp] <<= nTblOrQuery; break;
- case 3: pValues[nProp] <<= nBeamerSize; break;
- case 4: pValues[nProp] <<= nViewSize; break;
- case 5: pValues[nProp] <<= sQueryText; break;
- case 6: pValues[nProp] <<= sQueryField; break;
- case 7: pValues[nProp] <<= bShowColumnAssignmentWarning; break;
- }
- }
- PutProperties(aPropertyNames, aValues);
+ PutProperties(
+ GetPropertyNames(),
+ {css::uno::Any(sDataSource), css::uno::Any(sTableOrQuery),
+ css::uno::Any(nTblOrQuery), css::uno::Any(nBeamerSize),
+ css::uno::Any(nViewSize), css::uno::Any(sQueryText),
+ css::uno::Any(sQueryField),
+ css::uno::Any(bShowColumnAssignmentWarning)});
ClearNodeSet(cDataSourceHistory);
Sequence< PropertyValue > aNodeValues(pMappingsArr->size() * 3);
PropertyValue* pNodeValues = aNodeValues.getArray();