From 08495e24e899c2fd52b9724d993598189e12fc7e Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Wed, 12 Apr 2023 10:18:33 +0200 Subject: OUString::intern is a relic and a pessimisation. Remove usage thereof. Change-Id: I98f6197aa375349b909a7ef1403ec06ca37890d2 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/150269 Tested-by: Jenkins Reviewed-by: Noel Grandin --- oox/source/ppt/commonbehaviorcontext.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'oox/source') diff --git a/oox/source/ppt/commonbehaviorcontext.cxx b/oox/source/ppt/commonbehaviorcontext.cxx index 4ba40925a7e2..ca0a0c9ec7ac 100644 --- a/oox/source/ppt/commonbehaviorcontext.cxx +++ b/oox/source/ppt/commonbehaviorcontext.cxx @@ -83,9 +83,9 @@ namespace oox::ppt { if(msCurrentAttribute.equalsAscii( attrConv->mpMSName ) ) { Attribute attr; - attr.name = OUString::intern( attrConv->mpAPIName, - strlen(attrConv->mpAPIName), - RTL_TEXTENCODING_ASCII_US ); + attr.name = OUString( attrConv->mpAPIName, + strlen(attrConv->mpAPIName), + RTL_TEXTENCODING_ASCII_US ); attr.type = attrConv->meAttribute; maAttributes.push_back( attr ); SAL_INFO("oox.ppt", "OOX: attrName is " << msCurrentAttribute << " -> " << attrConv->mpAPIName ); -- cgit