From 301b5c0aea7a525c436b0f2f54a8cef8be947c89 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Wed, 11 May 2022 13:59:41 +0200 Subject: tdf#121740 avoid some temporary OUString construction Change-Id: Id70349e0e8f7d79bad693663ec3dc2963e0834b7 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/134205 Tested-by: Jenkins Reviewed-by: Noel Grandin --- sot/source/sdstor/stgdir.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sot') diff --git a/sot/source/sdstor/stgdir.cxx b/sot/source/sdstor/stgdir.cxx index b12feb594482..892c4e705e1f 100644 --- a/sot/source/sdstor/stgdir.cxx +++ b/sot/source/sdstor/stgdir.cxx @@ -705,7 +705,8 @@ StgDirStrm::StgDirStrm( StgIo& r ) { StgEntry aRoot; aRoot.Init(); - aRoot.SetName( "Root Entry" ); + static constexpr OUStringLiteral sRootEntry = u"Root Entry"; + aRoot.SetName( sRootEntry ); aRoot.SetType( STG_ROOT ); m_pRoot = new StgDirEntry( aRoot ); m_pRoot->SetDirty(); -- cgit