dbaccess/source/ui/app/subcomponentmanager.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
New commits: commit 6b513772e558e2982d1dc4a56626b0e4303f5869 Author: Noel Grandin <noel.gran...@collabora.co.uk> AuthorDate: Tue May 7 14:33:27 2024 +0200 Commit: Noel Grandin <noel.gran...@collabora.co.uk> CommitDate: Sat May 11 12:43:09 2024 +0200 replace createFromAscii with OUString literals in SubComponentManager Change-Id: I165b93ff8986f288b03fb001e8ceda12b5076872 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/167502 Reviewed-by: Noel Grandin <noel.gran...@collabora.co.uk> Tested-by: Jenkins diff --git a/dbaccess/source/ui/app/subcomponentmanager.cxx b/dbaccess/source/ui/app/subcomponentmanager.cxx index 9b390d97ba47..de97525bcb48 100644 --- a/dbaccess/source/ui/app/subcomponentmanager.cxx +++ b/dbaccess/source/ui/app/subcomponentmanager.cxx @@ -307,14 +307,14 @@ namespace dbaui return bSuccess; } - void lcl_notifySubComponentEvent( const SubComponentManager_Data& _rData, const char* _pAsciiEventName, + void lcl_notifySubComponentEvent( const SubComponentManager_Data& _rData, const OUString& _rAsciiEventName, const SubComponentDescriptor& _rComponent ) { try { Reference< XDocumentEventBroadcaster > xBroadcaster( _rData.m_rController.getModel(), UNO_QUERY_THROW ); xBroadcaster->notifyDocumentEvent( - OUString::createFromAscii( _pAsciiEventName ), + _rAsciiEventName, &_rData.m_rController, Any( _rComponent.xFrame ) ); @@ -397,7 +397,7 @@ namespace dbaui if ( aClosedComponent.is() ) { aGuard.clear(); - lcl_notifySubComponentEvent( *m_pData, "OnSubComponentClosed", aClosedComponent ); + lcl_notifySubComponentEvent( *m_pData, u"OnSubComponentClosed"_ustr, aClosedComponent ); } } @@ -474,7 +474,7 @@ namespace dbaui // notify this to interested parties aGuard.clear(); - lcl_notifySubComponentEvent( *m_pData, "OnSubComponentOpened", aElement ); + lcl_notifySubComponentEvent( *m_pData, u"OnSubComponentOpened"_ustr, aElement ); } bool SubComponentManager::activateSubFrame( const OUString& _rName, const sal_Int32 _nComponentType,