From f49d8ce4614bb12a6c9f0c6e83812aa69b9b2454 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Tue, 7 May 2024 16:01:41 +0200 Subject: loplugin:ostr in extensions Change-Id: I32f74fe67e8eb0b6b12ee60405c3d99932b75182 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/167284 Tested-by: Jenkins Reviewed-by: Noel Grandin --- extensions/source/abpilot/datasourcehandling.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'extensions/source/abpilot/datasourcehandling.cxx') diff --git a/extensions/source/abpilot/datasourcehandling.cxx b/extensions/source/abpilot/datasourcehandling.cxx index c26066b8daaa..77f94b71600c 100644 --- a/extensions/source/abpilot/datasourcehandling.cxx +++ b/extensions/source/abpilot/datasourcehandling.cxx @@ -140,7 +140,7 @@ namespace abp if (xNewDataSource.is()) { xNewDataSource->setPropertyValue( - "URL", + u"URL"_ustr, Any( OUString::createFromAscii( _pInitialAsciiURL ) ) ); } @@ -345,7 +345,7 @@ namespace abp else { // Embed. - OUString aStreamRelPath = "EmbeddedDatabase"; + OUString aStreamRelPath = u"EmbeddedDatabase"_ustr; auto xContext(comphelper::getProcessComponentContext()); auto xUri = css::uri::UriReferenceFactory::create(xContext)->parse(aOwnURL); assert(xUri.is()); @@ -366,8 +366,8 @@ namespace abp // Refer to the sub-storage name in the document settings, so // we can load it again next time the file is imported. uno::Reference xFactory(pObjectShell->GetModel(), uno::UNO_QUERY); - uno::Reference xPropertySet(xFactory->createInstance("com.sun.star.document.Settings"), uno::UNO_QUERY); - xPropertySet->setPropertyValue("EmbeddedDatabaseName", uno::Any(aStreamRelPath)); + uno::Reference xPropertySet(xFactory->createInstance(u"com.sun.star.document.Settings"_ustr), uno::UNO_QUERY); + xPropertySet->setPropertyValue(u"EmbeddedDatabaseName"_ustr, uno::Any(aStreamRelPath)); } } } -- cgit