diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-05-23 14:17:19 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-05-24 08:08:07 +0200 |
commit | 30f1ef51e59f00aad687b7b1f59592111feb1269 (patch) | |
tree | 510f828a891637b304e2213d1a636cad45fdf0df /basic/source/classes | |
parent | c59ede12ff06f7c10670d9ea8a631b25237e9f02 (diff) |
elide some OUString allocation
Change-Id: Iacbf1da6cdc77466d9f9da399b5cc17f5a87f0ed
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/134833
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'basic/source/classes')
-rw-r--r-- | basic/source/classes/sb.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/basic/source/classes/sb.cxx b/basic/source/classes/sb.cxx index def34b3718d6..570447246cf9 100644 --- a/basic/source/classes/sb.cxx +++ b/basic/source/classes/sb.cxx @@ -1305,7 +1305,7 @@ SbxVariable* StarBASIC::Find( const OUString& rName, SbxClassType t ) } } } - OUString aMainStr("Main"); + static constexpr OUStringLiteral aMainStr(u"Main"); if( !pRes && pNamed && ( t == SbxClassType::Method || t == SbxClassType::DontCare ) && !pNamed->GetName().equalsIgnoreAsciiCase( aMainStr ) ) { |