summaryrefslogtreecommitdiff
path: root/sot
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2022-05-11 13:59:41 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2022-05-12 11:38:42 +0200
commit301b5c0aea7a525c436b0f2f54a8cef8be947c89 (patch)
tree0ff9a6aa2fe16826e94ad8ba5b5f19cae375bd8b /sot
parent2c4330b3570f16d6668936fd05e1ab2ade597bae (diff)
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 <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sot')
-rw-r--r--sot/source/sdstor/stgdir.cxx3
1 files changed, 2 insertions, 1 deletions
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();