summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--forms/source/helper/formnavigation.cxx4
-rw-r--r--forms/source/inc/featuredispatcher.hxx2
-rw-r--r--forms/source/inc/formnavigation.hxx2
-rw-r--r--forms/source/solar/control/navtoolbar.cxx2
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