summaryrefslogtreecommitdiff
path: root/framework/source/uielement/uicommanddescription.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'framework/source/uielement/uicommanddescription.cxx')
-rw-r--r--framework/source/uielement/uicommanddescription.cxx20
1 files changed, 10 insertions, 10 deletions
diff --git a/framework/source/uielement/uicommanddescription.cxx b/framework/source/uielement/uicommanddescription.cxx
index eed5f5c7230e..5a59fce6e662 100644
--- a/framework/source/uielement/uicommanddescription.cxx
+++ b/framework/source/uielement/uicommanddescription.cxx
@@ -36,6 +36,7 @@
#include <unotools/configmgr.hxx>
#include <vcl/mnemonic.hxx>
+#include <comphelper/propertysequence.hxx>
#include <comphelper/sequence.hxx>
#include <comphelper/string.hxx>
@@ -500,15 +501,12 @@ Sequence< OUString > ConfigurationAccess_UICommand::getAllCommands()
void ConfigurationAccess_UICommand::initializeConfigAccess()
{
- Sequence< Any > aArgs( 1 );
- PropertyValue aPropValue;
-
try
{
- aPropValue.Name = "nodepath";
- aPropValue.Value <<= m_aConfigCmdAccess;
- aArgs[0] <<= aPropValue;
-
+ Sequence<Any> aArgs(comphelper::InitAnyPropertySequence(
+ {
+ {"nodepath", Any(m_aConfigCmdAccess)}
+ }));
m_xConfigAccess.set( m_xConfigProvider->createInstanceWithArguments(
"com.sun.star.configuration.ConfigurationAccess", aArgs ),UNO_QUERY );
if ( m_xConfigAccess.is() )
@@ -522,10 +520,12 @@ void ConfigurationAccess_UICommand::initializeConfigAccess()
}
}
- aPropValue.Value <<= m_aConfigPopupAccess;
- aArgs[0] <<= aPropValue;
+ Sequence<Any> aArgs2(comphelper::InitAnyPropertySequence(
+ {
+ {"nodepath", Any(m_aConfigPopupAccess)}
+ }));
m_xConfigAccessPopups.set( m_xConfigProvider->createInstanceWithArguments(
- "com.sun.star.configuration.ConfigurationAccess", aArgs ),UNO_QUERY );
+ "com.sun.star.configuration.ConfigurationAccess", aArgs2 ),UNO_QUERY );
if ( m_xConfigAccessPopups.is() )
{
// Add as container listener