diff options
Diffstat (limited to 'sw/source/uibase/shells/annotsh.cxx')
-rw-r--r-- | sw/source/uibase/shells/annotsh.cxx | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/sw/source/uibase/shells/annotsh.cxx b/sw/source/uibase/shells/annotsh.cxx index 3aa0f98d044a..ab78fad7aabc 100644 --- a/sw/source/uibase/shells/annotsh.cxx +++ b/sw/source/uibase/shells/annotsh.cxx @@ -116,6 +116,7 @@ #include <app.hrc> #include <comphelper/string.hxx> +#include <comphelper/propertysequence.hxx> #include <cppuhelper/bootstrap.hxx> #include <langhelper.hxx> @@ -1289,13 +1290,10 @@ void SwAnnotationShell::ExecLingu(SfxRequest &rReq) if( xInit.is() ) { // initialize dialog - Reference< awt::XWindow > xDialogParentWindow(nullptr); - Sequence<Any> aSeq(1); - Any* pArray = aSeq.getArray(); - PropertyValue aParam; - aParam.Name = "ParentWindow"; - aParam.Value <<= xDialogParentWindow; - pArray[0] <<= aParam; + uno::Sequence<uno::Any> aSeq(comphelper::InitAnyPropertySequence( + { + {"ParentWindow", uno::Any(Reference<awt::XWindow>())} + })); xInit->initialize( aSeq ); //execute dialog |