diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2021-06-11 14:20:45 +0200 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2021-06-11 15:32:10 +0200 |
commit | 771c8282aadb45373fc6348cc70f4cd75a43a396 (patch) | |
tree | 03baec5cace657f325e0a3ee781564c4a6651651 /vcl/source/gdi | |
parent | 430fffdd64af4ae09bbc49328c5188fc2dd4e185 (diff) |
Simplify Sequences initializations (vcl)
Change-Id: Id93bde17dbc4c71ad93bc094b94408fc9e39ec98
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/117055
Tested-by: Jenkins
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Diffstat (limited to 'vcl/source/gdi')
-rw-r--r-- | vcl/source/gdi/print.cxx | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/vcl/source/gdi/print.cxx b/vcl/source/gdi/print.cxx index d7928956e9bd..652bc00c58be 100644 --- a/vcl/source/gdi/print.cxx +++ b/vcl/source/gdi/print.cxx @@ -123,17 +123,15 @@ void PrinterOptions::ReadFromConfig( bool i_bFile ) { xConfigProvider = css::configuration::theDefaultProvider::get( xContext ); - css::uno::Sequence< css::uno::Any > aArgs(1); css::beans::PropertyValue aVal; aVal.Name = "nodepath"; if( i_bFile ) aVal.Value <<= OUString( "/org.openoffice.Office.Common/Print/Option/File" ); else aVal.Value <<= OUString( "/org.openoffice.Office.Common/Print/Option/Printer" ); - aArgs.getArray()[0] <<= aVal; xConfigAccess.set( xConfigProvider->createInstanceWithArguments( - "com.sun.star.configuration.ConfigurationAccess", aArgs ), + "com.sun.star.configuration.ConfigurationAccess", { css::uno::Any(aVal) } ), css::uno::UNO_QUERY ); if( xConfigAccess.is() ) { |