summaryrefslogtreecommitdiff
path: root/connectivity
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2024-05-08 11:24:50 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2024-05-11 23:05:38 +0200
commitd4f07d4c08724602d0a13045bec957e285d45c0d (patch)
treec3cd07e8a5780e03299cac24fadeec3a9ddc8cc8 /connectivity
parent9dac3118ee80bea900cede71e4ef616bad165401 (diff)
replace createFromAscii with OUString literals in OConfigurationNode
Change-Id: I19017bc993f0adafdae32313e0e01e69e1bbe80b Reviewed-on: https://gerrit.libreoffice.org/c/core/+/167517 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'connectivity')
-rw-r--r--connectivity/source/commontools/DriversConfig.cxx6
-rw-r--r--connectivity/source/commontools/dbtools2.cxx4
-rw-r--r--connectivity/source/drivers/jdbc/JConnection.cxx2
3 files changed, 6 insertions, 6 deletions
diff --git a/connectivity/source/commontools/DriversConfig.cxx b/connectivity/source/commontools/DriversConfig.cxx
index 3c5fe27e8327..fac2feb872ed 100644
--- a/connectivity/source/commontools/DriversConfig.cxx
+++ b/connectivity/source/commontools/DriversConfig.cxx
@@ -61,17 +61,17 @@ namespace
return;
OUString sParentURLPattern;
- aURLPatternNode.getNodeValue("ParentURLPattern") >>= sParentURLPattern;
+ aURLPatternNode.getNodeValue(u"ParentURLPattern"_ustr) >>= sParentURLPattern;
if ( !sParentURLPattern.isEmpty() )
lcl_readURLPatternNode(_aInstalled,sParentURLPattern,_rInstalledDriver);
OUString sDriverFactory;
- aURLPatternNode.getNodeValue("Driver") >>= sDriverFactory;
+ aURLPatternNode.getNodeValue(u"Driver"_ustr) >>= sDriverFactory;
if ( !sDriverFactory.isEmpty() )
_rInstalledDriver.sDriverFactory = sDriverFactory;
OUString sDriverTypeDisplayName;
- aURLPatternNode.getNodeValue("DriverTypeDisplayName") >>= sDriverTypeDisplayName;
+ aURLPatternNode.getNodeValue(u"DriverTypeDisplayName"_ustr) >>= sDriverTypeDisplayName;
OSL_ENSURE(!sDriverTypeDisplayName.isEmpty(),"No valid DriverTypeDisplayName property!");
if ( !sDriverTypeDisplayName.isEmpty() )
_rInstalledDriver.sDriverTypeDisplayName = sDriverTypeDisplayName;
diff --git a/connectivity/source/commontools/dbtools2.cxx b/connectivity/source/commontools/dbtools2.cxx
index e6088c513711..8590878dbcf6 100644
--- a/connectivity/source/commontools/dbtools2.cxx
+++ b/connectivity/source/commontools/dbtools2.cxx
@@ -947,7 +947,7 @@ OUString getDefaultReportEngineServiceName(const Reference< XComponentContext >&
if ( aReportEngines.isValid() )
{
OUString sDefaultReportEngineName;
- aReportEngines.getNodeValue("DefaultReportEngine") >>= sDefaultReportEngineName;
+ aReportEngines.getNodeValue(u"DefaultReportEngine"_ustr) >>= sDefaultReportEngineName;
if ( !sDefaultReportEngineName.isEmpty() )
{
::utl::OConfigurationNode aReportEngineNames = aReportEngines.openNode(u"ReportEngineNames"_ustr);
@@ -957,7 +957,7 @@ OUString getDefaultReportEngineServiceName(const Reference< XComponentContext >&
if ( aReportEngine.isValid() )
{
OUString sRet;
- aReportEngine.getNodeValue("ServiceName") >>= sRet;
+ aReportEngine.getNodeValue(u"ServiceName"_ustr) >>= sRet;
return sRet;
}
}
diff --git a/connectivity/source/drivers/jdbc/JConnection.cxx b/connectivity/source/drivers/jdbc/JConnection.cxx
index ed92faf87dba..00a868d92595 100644
--- a/connectivity/source/drivers/jdbc/JConnection.cxx
+++ b/connectivity/source/drivers/jdbc/JConnection.cxx
@@ -702,7 +702,7 @@ OUString java_sql_Connection::impl_getJavaDriverClassPath_nothrow(const OUString
if ( aNamesRoot.isValid() && aNamesRoot.hasByName( _sDriverClass ) )
{
::utl::OConfigurationNode aRegisterObj = aNamesRoot.openNode( _sDriverClass );
- OSL_VERIFY( aRegisterObj.getNodeValue( "Path" ) >>= sURL );
+ OSL_VERIFY( aRegisterObj.getNodeValue( u"Path"_ustr ) >>= sURL );
}
return sURL;
}