summaryrefslogtreecommitdiff
path: root/canvas
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 /canvas
parentc63ae748b301db1f4996b43f6faf4bb317c37467 (diff)
Simplify some PutProperties calls
Change-Id: Idf91592e6cf34b5591f221c3c5bdc937bbe46014
Diffstat (limited to 'canvas')
-rw-r--r--canvas/source/directx/dx_config.cxx6
1 files changed, 1 insertions, 5 deletions
diff --git a/canvas/source/directx/dx_config.cxx b/canvas/source/directx/dx_config.cxx
index 2ab26c1ca78e..edd097eae542 100644
--- a/canvas/source/directx/dx_config.cxx
+++ b/canvas/source/directx/dx_config.cxx
@@ -95,8 +95,6 @@ namespace dxcanvas
try
{
- uno::Sequence< OUString > aName { "DeviceBlacklist" };
-
uno::Sequence< sal_Int32 > aValues( sizeof(DeviceInfo)/sizeof(sal_Int32)*maValues.size() );
sal_Int32* pValues = aValues.getArray();
@@ -113,9 +111,7 @@ namespace dxcanvas
*pValues++ = rInfo.nDriverBuildId;
}
- uno::Sequence< uno::Any > aValue(1);
- aValue[0] <<= aValues;
- PutProperties( aName, aValue );
+ PutProperties({"DeviceBlacklist"}, {css::uno::Any(aValues)});
}
catch( const uno::Exception& )
{