extensions/source/update/check/updatecheckconfig.hxx |    5 +++--
 extensions/source/update/check/updatecheckjob.cxx    |   16 ++++++++--------
 2 files changed, 11 insertions(+), 10 deletions(-)

New commits:
commit 1f3cc565a32452ef52d66fef33c551dffff814c3
Author:     Michael Weghorn <m.wegh...@posteo.de>
AuthorDate: Tue Sep 16 20:07:46 2025 +0200
Commit:     Michael Weghorn <m.wegh...@posteo.de>
CommitDate: Wed Sep 17 08:55:44 2025 +0200

    update check: Switch const char* param to u16string_view
    
    Change-Id: I6de916857a23b60b5144147c08cfe6c2ad48edbd
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/191042
    Tested-by: Jenkins
    Reviewed-by: Michael Weghorn <m.wegh...@posteo.de>

diff --git a/extensions/source/update/check/updatecheckconfig.hxx 
b/extensions/source/update/check/updatecheckconfig.hxx
index a9836c624822..dd839d041746 100644
--- a/extensions/source/update/check/updatecheckconfig.hxx
+++ b/extensions/source/update/check/updatecheckconfig.hxx
@@ -178,12 +178,13 @@ private:
 
 /// @throws css::uno::RuntimeException
 template <typename T>
-T getValue( const css::uno::Sequence< css::beans::NamedValue >& rNamedValues, 
const char * pszName )
+T getValue(const css::uno::Sequence<css::beans::NamedValue>& rNamedValues,
+           std::u16string_view sName)
 {
     for( css::beans::NamedValue const & nv : rNamedValues )
     {
         // Unfortunately gcc-3.3 does not like Any.get<T>();
-        if( nv.Name.equalsAscii( pszName ) )
+        if (nv.Name == sName)
         {
             T value = T();
             if( ! (nv.Value >>= value) )
diff --git a/extensions/source/update/check/updatecheckjob.cxx 
b/extensions/source/update/check/updatecheckjob.cxx
index b6e56196328e..1a1e55f6b062 100644
--- a/extensions/source/update/check/updatecheckjob.cxx
+++ b/extensions/source/update/check/updatecheckjob.cxx
@@ -195,17 +195,17 @@ UpdateCheckJob::execute(const 
uno::Sequence<beans::NamedValue>& namedValues)
         }
     }
 
-    uno::Sequence<beans::NamedValue> aConfig =
-        getValue< uno::Sequence<beans::NamedValue> > (namedValues, 
"JobConfig");
+    uno::Sequence<beans::NamedValue> aConfig
+        = getValue<uno::Sequence<beans::NamedValue>>(namedValues, 
u"JobConfig");
 
     /* Determine the way we got invoked here -
      * see Developers Guide Chapter "4.7.2 Jobs" to understand the magic
      */
 
-    uno::Sequence<beans::NamedValue> aEnvironment =
-        getValue< uno::Sequence<beans::NamedValue> > (namedValues, 
"Environment");
+    uno::Sequence<beans::NamedValue> aEnvironment
+        = getValue<uno::Sequence<beans::NamedValue>>(namedValues, 
u"Environment");
 
-    OUString aEventName = getValue< OUString > (aEnvironment, "EventName");
+    OUString aEventName = getValue<OUString>(aEnvironment, u"EventName");
 
     auto thread = std::make_unique<InitUpdateCheckJobThread >(
         m_xContext, aConfig,
@@ -222,9 +222,9 @@ UpdateCheckJob::execute(const 
uno::Sequence<beans::NamedValue>& namedValues)
 void UpdateCheckJob::handleExtensionUpdates( const uno::Sequence< 
beans::NamedValue > &rListProp )
 {
     try {
-        uno::Sequence< uno::Sequence< OUString > > aList =
-            getValue< uno::Sequence< uno::Sequence< OUString > > > ( 
rListProp, "updateList" );
-        bool bPrepareOnly = getValue< bool > ( rListProp, "prepareOnly" );
+        uno::Sequence<uno::Sequence<OUString>> aList
+            = getValue<uno::Sequence<uno::Sequence<OUString>>>(rListProp, 
u"updateList");
+        bool bPrepareOnly = getValue<bool>(rListProp, u"prepareOnly");
 
         // we will first store any new found updates and then check, if there 
are any
         // pending updates.

Reply via email to