summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorNoel Grandin <noelgrandin@gmail.com>2024-04-21 21:39:13 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2024-04-22 12:10:18 +0200
commit6adef53aa9870c8f3c8cc1bb6c475e253d41077b (patch)
tree91ff85404bdbdff4b38d73ba93e6604de591e73e /sfx2
parent4b6e0f2c88debaedb514c868e061c21e15215b6e (diff)
use more OUString literal
convert some functions which merely create an OUString on the fly from a char literal to 'constexpr OUString' literals Change-Id: I617490baf2d976291b324cc991b59cd18f4b242c Reviewed-on: https://gerrit.libreoffice.org/c/core/+/166392 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/dialog/filtergrouping.cxx7
1 files changed, 2 insertions, 5 deletions
diff --git a/sfx2/source/dialog/filtergrouping.cxx b/sfx2/source/dialog/filtergrouping.cxx
index b6232e301e43..5aada4d6ac69 100644
--- a/sfx2/source/dialog/filtergrouping.cxx
+++ b/sfx2/source/dialog/filtergrouping.cxx
@@ -402,10 +402,7 @@ namespace sfx2
const sal_Unicode s_cWildcardSeparator( ';' );
- static OUString getSeparatorString()
- {
- return ";";
- }
+ constexpr OUString SEPARATOR = u";"_ustr;
namespace {
@@ -438,7 +435,7 @@ namespace sfx2
}
if ( !_rToBeExtended.isEmpty() )
- _rToBeExtended += getSeparatorString();
+ _rToBeExtended += SEPARATOR;
_rToBeExtended += _rWC;
}
};