summaryrefslogtreecommitdiff
path: root/oox
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2021-02-09 20:48:37 +0100
committerStephan Bergmann <sbergman@redhat.com>2021-02-10 10:33:25 +0100
commit4cae353cae28f6530544ad5864d4ce3075ac5bcc (patch)
tree6d5adffbaa05ac9d1cd320ac393040490d3c289f /oox
parent4b92707c19ef47cdb9474224e83e5153c54b661d (diff)
Fix loplugin:stringliteralvar
...detection of OUString( const sal_Unicode * value, sal_Int32 length ) ctor. (On platforms where sal_Int32 is a typedef for int, an argument that already is of type int will not be wrapped in an ImplicitCastExpr to the sal_Int32 typedef.) Change-Id: Ifc5456a62d42c1acad76ea949549dc24bd67201a Reviewed-on: https://gerrit.libreoffice.org/c/core/+/110654 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'oox')
-rw-r--r--oox/source/vml/vmldrawing.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/oox/source/vml/vmldrawing.cxx b/oox/source/vml/vmldrawing.cxx
index 716b07dc6e61..727109b5d3e8 100644
--- a/oox/source/vml/vmldrawing.cxx
+++ b/oox/source/vml/vmldrawing.cxx
@@ -57,8 +57,8 @@ namespace {
OUString lclGetShapeId( sal_Int32 nShapeId )
{
// identifier consists of a literal NUL character, a lowercase 's', and the id
- sal_Unicode const aStr[2] = { '\0', 's' };
- return OUString( aStr, 2 ) + OUString::number( nShapeId );
+ static constexpr OUStringLiteral aStr = u"\0s";
+ return aStr + OUString::number( nShapeId );
}
/** Returns the numeric VML shape identifier from its textual representation. */