forms/source/helper/formnavigation.cxx    |    4 ++--
 forms/source/inc/featuredispatcher.hxx    |    2 +-
 forms/source/inc/formnavigation.hxx       |    2 +-
 forms/source/solar/control/navtoolbar.cxx |    2 +-
 4 files changed, 5 insertions(+), 5 deletions(-)

New commits:
commit 3f4726c45e69a1582a91ea359434625db86868b2
Author:     Noel Grandin <[email protected]>
AuthorDate: Thu May 2 12:48:45 2024 +0200
Commit:     Noel Grandin <[email protected]>
CommitDate: Thu May 2 20:09:09 2024 +0200

    replace createFromAscii with OUString literals in forms
    
    Change-Id: I688fbf8777736a3f55ab5c0d9c8acaf55f83d8b9
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/167009
    Reviewed-by: Noel Grandin <[email protected]>
    Tested-by: Jenkins

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

Reply via email to