diff options
Diffstat (limited to 'extensions/source/abpilot/unodialogabp.cxx')
-rw-r--r-- | extensions/source/abpilot/unodialogabp.cxx | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/extensions/source/abpilot/unodialogabp.cxx b/extensions/source/abpilot/unodialogabp.cxx index a9836d910535..4baafbf7f705 100644 --- a/extensions/source/abpilot/unodialogabp.cxx +++ b/extensions/source/abpilot/unodialogabp.cxx @@ -31,14 +31,13 @@ namespace abp { using namespace ::com::sun::star; using namespace ::com::sun::star::uno; - using namespace ::com::sun::star::lang; using namespace ::com::sun::star::beans; using namespace ::com::sun::star::ui::dialogs; OABSPilotUno::OABSPilotUno(const Reference< XComponentContext >& _rxORB) :OGenericUnoDialog(_rxORB) { - registerProperty( "DataSourceName", PROPERTY_ID_DATASOURCENAME, PropertyAttribute::READONLY , + registerProperty( u"DataSourceName"_ustr, PROPERTY_ID_DATASOURCENAME, PropertyAttribute::READONLY , &m_sDataSourceName, cppu::UnoType<decltype(m_sDataSourceName)>::get() ); } @@ -73,12 +72,12 @@ namespace abp OUString SAL_CALL OABSPilotUno::getImplementationName() { - return "org.openoffice.comp.abp.OAddressBookSourcePilot"; + return u"org.openoffice.comp.abp.OAddressBookSourcePilot"_ustr; } css::uno::Sequence<OUString> SAL_CALL OABSPilotUno::getSupportedServiceNames() { - return { "com.sun.star.ui.dialogs.AddressBookSourcePilot" }; + return { u"com.sun.star.ui.dialogs.AddressBookSourcePilot"_ustr }; } Reference<XPropertySetInfo> SAL_CALL OABSPilotUno::getPropertySetInfo() @@ -105,8 +104,8 @@ namespace abp { Reference<awt::XWindow> xParentWindow; if (aArguments.getLength() == 1 && (aArguments[0] >>= xParentWindow) ) { - Sequence< Any > aNewArgs(1); - aNewArgs[0] <<= PropertyValue( "ParentWindow", 0, makeAny(xParentWindow), PropertyState_DIRECT_VALUE ); + Sequence< Any > aNewArgs{ Any(PropertyValue( + u"ParentWindow"_ustr, 0, Any(xParentWindow), PropertyState_DIRECT_VALUE )) }; OGenericUnoDialog::initialize(aNewArgs); } else { OGenericUnoDialog::initialize(aArguments); @@ -129,8 +128,8 @@ namespace abp // User has one chance to accept it or not. // (or he can start it again by using wizard-menu!) // So we should deregister it on our general job execution service by using right protocol parameters. - css::uno::Sequence< css::beans::NamedValue > lProtocol { { "Deactivate", css::uno::makeAny( true ) } }; - return makeAny( lProtocol ); + css::uno::Sequence< css::beans::NamedValue > lProtocol { { u"Deactivate"_ustr, css::uno::Any( true ) } }; + return Any( lProtocol ); } void OABSPilotUno::executedDialog(sal_Int16 _nExecutionResult) |