diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2022-05-05 09:44:28 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2022-05-05 11:44:48 +0200 |
commit | 7c5d3d74ee7c1f5bb87e46c5ff532451a94cf115 (patch) | |
tree | c02acd364bad74c777dd04f4b4f1c70529fd22b9 /shell | |
parent | 08c979e235aa993f50e54224f8c715bb70697c33 (diff) |
Just use Any ctor instead of makeAny (Linux, sequel)
Change-Id: Idcf537a838bb0e47cfa31db8bc09e477b277ee37
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133875
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'shell')
-rw-r--r-- | shell/source/backends/desktopbe/desktopbackend.cxx | 2 | ||||
-rw-r--r-- | shell/source/backends/kf5be/kf5access.cxx | 26 | ||||
-rw-r--r-- | shell/source/backends/kf5be/kf5backend.cxx | 6 |
3 files changed, 17 insertions, 17 deletions
diff --git a/shell/source/backends/desktopbe/desktopbackend.cxx b/shell/source/backends/desktopbe/desktopbackend.cxx index 8d6a5615e6ba..4dcc91967cba 100644 --- a/shell/source/backends/desktopbe/desktopbackend.cxx +++ b/shell/source/backends/desktopbe/desktopbackend.cxx @@ -248,7 +248,7 @@ css::uno::Any Default::getPropertyValue(OUString const & PropertyName) PropertyName == "givenname" || PropertyName == "sn" ) { - return css::uno::makeAny(css::beans::Optional< css::uno::Any >()); + return css::uno::Any(css::beans::Optional< css::uno::Any >()); } throw css::beans::UnknownPropertyException( diff --git a/shell/source/backends/kf5be/kf5access.cxx b/shell/source/backends/kf5be/kf5access.cxx index 67056ad5544b..bfb669cf2cbe 100644 --- a/shell/source/backends/kf5be/kf5access.cxx +++ b/shell/source/backends/kf5be/kf5access.cxx @@ -68,27 +68,27 @@ css::beans::Optional<css::uno::Any> getValue(std::u16string_view id) else aClientProgram = aClientProgram.section(QLatin1Char(' '), 0, 0); sClientProgram = fromQStringToOUString(aClientProgram); - return css::beans::Optional<css::uno::Any>(true, uno::makeAny(sClientProgram)); + return css::beans::Optional<css::uno::Any>(true, uno::Any(sClientProgram)); } else if (id == u"SourceViewFontHeight") { const QFont aFixedFont = QFontDatabase::systemFont(QFontDatabase::FixedFont); const short nFontHeight = aFixedFont.pointSize(); - return css::beans::Optional<css::uno::Any>(true, uno::makeAny(nFontHeight)); + return css::beans::Optional<css::uno::Any>(true, uno::Any(nFontHeight)); } else if (id == u"SourceViewFontName") { const QFont aFixedFont = QFontDatabase::systemFont(QFontDatabase::FixedFont); const QString aFontName = aFixedFont.family(); const OUString sFontName = fromQStringToOUString(aFontName); - return css::beans::Optional<css::uno::Any>(true, uno::makeAny(sFontName)); + return css::beans::Optional<css::uno::Any>(true, uno::Any(sFontName)); } else if (id == u"EnableATToolSupport") { /* does not make much sense without an accessibility bridge */ bool ATToolSupport = false; return css::beans::Optional<css::uno::Any>(true, - uno::makeAny(OUString::boolean(ATToolSupport))); + uno::Any(OUString::boolean(ATToolSupport))); } else if (id == u"WorkPathVariable") { @@ -101,7 +101,7 @@ css::beans::Optional<css::uno::Any> getValue(std::u16string_view id) aDocumentsDir.truncate(aDocumentsDir.length() - 1); sDocumentsDir = fromQStringToOUString(aDocumentsDir); osl_getFileURLFromSystemPath(sDocumentsDir.pData, &sDocumentsURL.pData); - return css::beans::Optional<css::uno::Any>(true, uno::makeAny(sDocumentsURL)); + return css::beans::Optional<css::uno::Any>(true, uno::Any(sDocumentsURL)); } else if (id == u"ooInetFTPProxyName") { @@ -127,7 +127,7 @@ css::beans::Optional<css::uno::Any> getValue(std::u16string_view id) { QUrl aProxy(aFTPProxy); OUString sProxy = fromQStringToOUString(aProxy.host()); - return css::beans::Optional<css::uno::Any>(true, uno::makeAny(sProxy)); + return css::beans::Optional<css::uno::Any>(true, uno::Any(sProxy)); } } else if (id == u"ooInetFTPProxyPort") @@ -154,7 +154,7 @@ css::beans::Optional<css::uno::Any> getValue(std::u16string_view id) { QUrl aProxy(aFTPProxy); sal_Int32 nPort = aProxy.port(); - return css::beans::Optional<css::uno::Any>(true, uno::makeAny(nPort)); + return css::beans::Optional<css::uno::Any>(true, uno::Any(nPort)); } } else if (id == u"ooInetHTTPProxyName") @@ -181,7 +181,7 @@ css::beans::Optional<css::uno::Any> getValue(std::u16string_view id) { QUrl aProxy(aHTTPProxy); OUString sProxy = fromQStringToOUString(aProxy.host()); - return css::beans::Optional<css::uno::Any>(true, uno::makeAny(sProxy)); + return css::beans::Optional<css::uno::Any>(true, uno::Any(sProxy)); } } else if (id == u"ooInetHTTPProxyPort") @@ -208,7 +208,7 @@ css::beans::Optional<css::uno::Any> getValue(std::u16string_view id) { QUrl aProxy(aHTTPProxy); sal_Int32 nPort = aProxy.port(); - return css::beans::Optional<css::uno::Any>(true, uno::makeAny(nPort)); + return css::beans::Optional<css::uno::Any>(true, uno::Any(nPort)); } } else if (id == u"ooInetHTTPSProxyName") @@ -235,7 +235,7 @@ css::beans::Optional<css::uno::Any> getValue(std::u16string_view id) { QUrl aProxy(aHTTPSProxy); OUString sProxy = fromQStringToOUString(aProxy.host()); - return css::beans::Optional<css::uno::Any>(true, uno::makeAny(sProxy)); + return css::beans::Optional<css::uno::Any>(true, uno::Any(sProxy)); } } else if (id == u"ooInetHTTPSProxyPort") @@ -262,7 +262,7 @@ css::beans::Optional<css::uno::Any> getValue(std::u16string_view id) { QUrl aProxy(aHTTPSProxy); sal_Int32 nPort = aProxy.port(); - return css::beans::Optional<css::uno::Any>(true, uno::makeAny(nPort)); + return css::beans::Optional<css::uno::Any>(true, uno::Any(nPort)); } } else if (id == u"ooInetNoProxy") @@ -285,7 +285,7 @@ css::beans::Optional<css::uno::Any> getValue(std::u16string_view id) aNoProxyFor = aNoProxyFor.replace(QLatin1Char(','), QLatin1Char(';')); sNoProxyFor = fromQStringToOUString(aNoProxyFor); - return css::beans::Optional<css::uno::Any>(true, uno::makeAny(sNoProxyFor)); + return css::beans::Optional<css::uno::Any>(true, uno::Any(sNoProxyFor)); } } else if (id == u"ooInetProxyType") @@ -302,7 +302,7 @@ css::beans::Optional<css::uno::Any> getValue(std::u16string_view id) default: // No proxy is used nProxyType = 0; } - return css::beans::Optional<css::uno::Any>(true, uno::makeAny(nProxyType)); + return css::beans::Optional<css::uno::Any>(true, uno::Any(nProxyType)); } else { diff --git a/shell/source/backends/kf5be/kf5backend.cxx b/shell/source/backends/kf5be/kf5backend.cxx index 2b41414c54cd..7137a9999873 100644 --- a/shell/source/backends/kf5be/kf5backend.cxx +++ b/shell/source/backends/kf5be/kf5backend.cxx @@ -237,14 +237,14 @@ css::uno::Any Service::getPropertyValue(OUString const& PropertyName) std::map<OUString, css::beans::Optional<css::uno::Any>>::iterator it = m_KDESettings.find(PropertyName); if (it != m_KDESettings.end()) - return css::uno::makeAny(it->second); + return css::uno::Any(it->second); else - return css::uno::makeAny(css::beans::Optional<css::uno::Any>()); + return css::uno::Any(css::beans::Optional<css::uno::Any>()); } else if (PropertyName == "givenname" || PropertyName == "sn" || PropertyName == "TemplatePathVariable") { - return css::uno::makeAny(css::beans::Optional<css::uno::Any>()); + return css::uno::Any(css::beans::Optional<css::uno::Any>()); //TODO: obtain values from KDE? } throw css::beans::UnknownPropertyException(PropertyName, static_cast<cppu::OWeakObject*>(this)); |