diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-05-23 11:04:19 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-05-23 15:25:42 +0200 |
commit | 0a1bfe1e3fb298d7d7e2cfd85887d430cce59238 (patch) | |
tree | f38008d197ecb7cf1b8782fdb8ffdb1aac5edbcb /starmath | |
parent | e1b3a6edd4b3400c25aa135d75bd1ad19b279609 (diff) |
elide some OUString allocation
Change-Id: I5f0b9057b86ec98b66b4ce2d6c681b8cb93d49e1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/134802
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'starmath')
-rw-r--r-- | starmath/source/unomodel.cxx | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/starmath/source/unomodel.cxx b/starmath/source/unomodel.cxx index 8b0b8817f588..b61fae230441 100644 --- a/starmath/source/unomodel.cxx +++ b/starmath/source/unomodel.cxx @@ -389,10 +389,9 @@ sal_Bool SmModel::supportsService(const OUString& rServiceName) uno::Sequence< OUString > SmModel::getSupportedServiceNames() { - return uno::Sequence<OUString>{ - "com.sun.star.document.OfficeDocument", - "com.sun.star.formula.FormulaProperties" - }; + static constexpr OUStringLiteral service1 = u"com.sun.star.document.OfficeDocument"; + static constexpr OUStringLiteral service2 = u"com.sun.star.formula.FormulaProperties"; + return uno::Sequence<OUString>{ service1, service2 }; } void SmModel::_setPropertyValues(const PropertyMapEntry** ppEntries, const Any* pValues) |