diff options
author | Mike Kaganski <mike.kaganski@collabora.com> | 2021-10-29 09:44:28 +0300 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2021-10-30 10:31:26 +0200 |
commit | f662ba95361ba6b8eb49e0acd98bf28bc5f21100 (patch) | |
tree | a06ea88459155bb72b3f01dcda1d27f17cc49209 /framework/source/classes | |
parent | bddfc920220b712c08eda96ac320a274e4bfcee6 (diff) |
Prepare for removal of non-const operator[] from Sequence in framework
Change-Id: Ied2683a0b8a1bab1a7594da1e9bdbd3cb753552c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/124370
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'framework/source/classes')
-rw-r--r-- | framework/source/classes/taskcreator.cxx | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/framework/source/classes/taskcreator.cxx b/framework/source/classes/taskcreator.cxx index baaaa7aba708..9c8ea6415aeb 100644 --- a/framework/source/classes/taskcreator.cxx +++ b/framework/source/classes/taskcreator.cxx @@ -71,33 +71,34 @@ css::uno::Reference< css::frame::XFrame > TaskCreator::createTask( const OUStrin xCreator = css::frame::TaskCreator::create(m_xContext); css::uno::Sequence< css::uno::Any > lArgs(6); + auto plArgs = lArgs.getArray(); css::beans::NamedValue aArg; aArg.Name = ARGUMENT_PARENTFRAME; aArg.Value <<= css::uno::Reference< css::frame::XFrame >( css::frame::Desktop::create( m_xContext ), css::uno::UNO_QUERY_THROW); - lArgs[0] <<= aArg; + plArgs[0] <<= aArg; aArg.Name = ARGUMENT_CREATETOPWINDOW; aArg.Value <<= true; - lArgs[1] <<= aArg; + plArgs[1] <<= aArg; aArg.Name = ARGUMENT_MAKEVISIBLE; aArg.Value <<= false; - lArgs[2] <<= aArg; + plArgs[2] <<= aArg; aArg.Name = ARGUMENT_SUPPORTPERSISTENTWINDOWSTATE; aArg.Value <<= true; - lArgs[3] <<= aArg; + plArgs[3] <<= aArg; aArg.Name = ARGUMENT_FRAMENAME; aArg.Value <<= sName; - lArgs[4] <<= aArg; + plArgs[4] <<= aArg; bool bHidden = rDescriptor.getUnpackedValueOrDefault("HiddenForConversion", false); aArg.Name = "HiddenForConversion"; aArg.Value <<= bHidden; - lArgs[5] <<= aArg; + plArgs[5] <<= aArg; css::uno::Reference< css::frame::XFrame > xTask(xCreator->createInstanceWithArguments(lArgs), css::uno::UNO_QUERY_THROW); return xTask; |