diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2024-05-02 12:48:45 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2024-05-02 20:09:09 +0200 |
commit | 3f4726c45e69a1582a91ea359434625db86868b2 (patch) | |
tree | 1286be420a6744bc1c7b6a546e6e7bef38f23fa0 | |
parent | Extend silence strange -Wclobbered with GCC <= 14 (diff) | |
download | core-3f4726c45e69a1582a91ea359434625db86868b2.tar.gz core-3f4726c45e69a1582a91ea359434625db86868b2.zip |
replace createFromAscii with OUString literals in forms
Change-Id: I688fbf8777736a3f55ab5c0d9c8acaf55f83d8b9
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/167009
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Jenkins
-rw-r--r-- | forms/source/helper/formnavigation.cxx | 4 | ||||
-rw-r--r-- | forms/source/inc/featuredispatcher.hxx | 2 | ||||
-rw-r--r-- | forms/source/inc/formnavigation.hxx | 2 | ||||
-rw-r--r-- | forms/source/solar/control/navtoolbar.cxx | 2 |
4 files changed, 5 insertions, 5 deletions
diff --git a/forms/source/helper/formnavigation.cxx b/forms/source/helper/formnavigation.cxx index be87c063e303..a43287463b40 100644 --- a/forms/source/helper/formnavigation.cxx +++ b/forms/source/helper/formnavigation.cxx @@ -266,7 +266,7 @@ namespace frm } - void OFormNavigationHelper::dispatchWithArgument( sal_Int16 _nFeatureId, const char* _pParamAsciiName, + void OFormNavigationHelper::dispatchWithArgument( sal_Int16 _nFeatureId, const OUString& _pParamAsciiName, const Any& _rParamValue ) const { FeatureMap::const_iterator aInfo = m_aSupportedFeatures.find( _nFeatureId ); @@ -275,7 +275,7 @@ namespace frm if ( aInfo->second.xDispatcher.is() ) { Sequence< PropertyValue > aArgs{ comphelper::makePropertyValue( - OUString::createFromAscii( _pParamAsciiName ), _rParamValue) }; + _pParamAsciiName, _rParamValue) }; aInfo->second.xDispatcher->dispatch( aInfo->second.aURL, aArgs ); } diff --git a/forms/source/inc/featuredispatcher.hxx b/forms/source/inc/featuredispatcher.hxx index 33f4610be4b6..313eb7af10a4 100644 --- a/forms/source/inc/featuredispatcher.hxx +++ b/forms/source/inc/featuredispatcher.hxx @@ -49,7 +49,7 @@ namespace frm */ virtual void dispatchWithArgument( sal_Int16 _nFeatureId, - const char* _pParamName, + const OUString& _pParamName, const css::uno::Any& _rParamValue ) const = 0; diff --git a/forms/source/inc/formnavigation.hxx b/forms/source/inc/formnavigation.hxx index 03715d28aba8..a0ef8a0b638e 100644 --- a/forms/source/inc/formnavigation.hxx +++ b/forms/source/inc/formnavigation.hxx @@ -90,7 +90,7 @@ namespace frm // IFeatureDispatcher virtual void dispatch( sal_Int16 _nFeatureId ) const override; - virtual void dispatchWithArgument( sal_Int16 _nFeatureId, const char* _pParamName, const css::uno::Any& _rParamValue ) const override; + virtual void dispatchWithArgument( sal_Int16 _nFeatureId, const OUString& _pParamName, const css::uno::Any& _rParamValue ) const override; virtual bool isEnabled( sal_Int16 _nFeatureId ) const override; virtual bool getBooleanState( sal_Int16 _nFeatureId ) const override; virtual OUString getStringState( sal_Int16 _nFeatureId ) const override; diff --git a/forms/source/solar/control/navtoolbar.cxx b/forms/source/solar/control/navtoolbar.cxx index 7193ac4532c1..f637ca3154d5 100644 --- a/forms/source/solar/control/navtoolbar.cxx +++ b/forms/source/solar/control/navtoolbar.cxx @@ -633,7 +633,7 @@ namespace frm { if (!m_pDispatcher) return; - m_pDispatcher->dispatchWithArgument( FormFeature::MoveAbsolute, "Position", Any( static_cast<sal_Int32>(nRecord) ) ); + m_pDispatcher->dispatchWithArgument( FormFeature::MoveAbsolute, u"Position"_ustr, Any( static_cast<sal_Int32>(nRecord) ) ); } } // namespace frm |