From 4f5f24a4a3dac22e0f2c0d4832e0cbdd566263b9 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Wed, 8 May 2024 11:58:04 +0200 Subject: loplugin:ostr in framework Change-Id: I2fdc32aa5de6a1315fe69997f9b531259aa78605 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/167339 Tested-by: Jenkins Reviewed-by: Noel Grandin --- framework/source/fwi/threadhelp/transactionmanager.cxx | 4 ++-- framework/source/fwi/uielement/constitemcontainer.cxx | 2 +- framework/source/fwi/uielement/rootitemcontainer.cxx | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) (limited to 'framework/source/fwi') diff --git a/framework/source/fwi/threadhelp/transactionmanager.cxx b/framework/source/fwi/threadhelp/transactionmanager.cxx index 86d5b354a064..0d63c84df0c5 100644 --- a/framework/source/fwi/threadhelp/transactionmanager.cxx +++ b/framework/source/fwi/threadhelp/transactionmanager.cxx @@ -173,13 +173,13 @@ void TransactionManager::registerTransaction( EExceptionMode eMode ) { // Help programmer to find out, why this exception is thrown! SAL_WARN( "fwk", "TransactionManager...: Owner instance stand in close method. Call was rejected!" ); - throw css::lang::DisposedException( "TransactionManager: Owner instance stand in close method. Call was rejected!" ); + throw css::lang::DisposedException( u"TransactionManager: Owner instance stand in close method. Call was rejected!"_ustr ); } break; case E_CLOSE: // Help programmer to find out, why this exception is thrown! SAL_WARN( "fwk", "TransactionManager...: Owner instance already closed. Call was rejected!" ); - throw css::lang::DisposedException( "TransactionManager: Owner instance already closed. Call was rejected!" ); + throw css::lang::DisposedException( u"TransactionManager: Owner instance already closed. Call was rejected!"_ustr ); } // Register this new transaction. diff --git a/framework/source/fwi/uielement/constitemcontainer.cxx b/framework/source/fwi/uielement/constitemcontainer.cxx index 40865c8f1b81..4dec6fec43ff 100644 --- a/framework/source/fwi/uielement/constitemcontainer.cxx +++ b/framework/source/fwi/uielement/constitemcontainer.cxx @@ -57,7 +57,7 @@ ConstItemContainer::ConstItemContainer( const Reference< XIndexAccess >& rSource Reference< XPropertySet > xPropSet( rSourceContainer, UNO_QUERY ); if ( xPropSet.is() ) { - xPropSet->getPropertyValue("UIName") >>= m_aUIName; + xPropSet->getPropertyValue(u"UIName"_ustr) >>= m_aUIName; } } catch ( const Exception& ) diff --git a/framework/source/fwi/uielement/rootitemcontainer.cxx b/framework/source/fwi/uielement/rootitemcontainer.cxx index 652f0dd8029f..c153d71c716d 100644 --- a/framework/source/fwi/uielement/rootitemcontainer.cxx +++ b/framework/source/fwi/uielement/rootitemcontainer.cxx @@ -59,7 +59,7 @@ RootItemContainer::RootItemContainer( const Reference< XIndexAccess >& rSourceCo Reference< XPropertySet > xPropSet( rSourceContainer, UNO_QUERY ); if ( xPropSet.is() ) { - xPropSet->getPropertyValue("UIName") >>= m_aUIName; + xPropSet->getPropertyValue(u"UIName"_ustr) >>= m_aUIName; } } catch ( const Exception& ) -- cgit