replace createFromAscii with OUString literals in SubComponentManager

Change-Id: I165b93ff8986f288b03fb001e8ceda12b5076872
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/167502
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Jenkins
This commit is contained in:
Noel Grandin 2024-05-07 14:33:27 +02:00
parent 9e8fd61044
commit 6b513772e5

View file

@ -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,