summaryrefslogtreecommitdiff
path: root/svx/source/stbctrls/xmlsecctrl.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'svx/source/stbctrls/xmlsecctrl.cxx')
-rw-r--r--svx/source/stbctrls/xmlsecctrl.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/svx/source/stbctrls/xmlsecctrl.cxx b/svx/source/stbctrls/xmlsecctrl.cxx
index e85868cda947..0a26128d940f 100644
--- a/svx/source/stbctrls/xmlsecctrl.cxx
+++ b/svx/source/stbctrls/xmlsecctrl.cxx
@@ -17,7 +17,9 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
+#include <sal/config.h>
+#include <comphelper/propertyvalue.hxx>
#include <vcl/commandevent.hxx>
#include <vcl/image.hxx>
#include <vcl/event.hxx>
@@ -109,13 +111,11 @@ void XmlSecStatusBarControl::Command( const CommandEvent& rCEvt )
{
css::uno::Any a;
SfxUInt16Item aState( GetSlotId(), 0 );
- INetURLObject aObj( m_aCommandURL );
-
- css::uno::Sequence< css::beans::PropertyValue > aArgs( 1 );
- aArgs[0].Name = aObj.GetURLPath();
aState.QueryValue( a );
- aArgs[0].Value = a;
+ INetURLObject aObj( m_aCommandURL );
+ css::uno::Sequence< css::beans::PropertyValue > aArgs{ comphelper::makePropertyValue(
+ aObj.GetURLPath(), a) };
execute( aArgs );
}
}