summaryrefslogtreecommitdiff
path: root/oox
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2013-02-22 04:28:42 +0100
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2013-02-22 04:32:40 +0100
commita51f2248a6fe377a9306f4ed5c7db6ca26d0244c (patch)
treed9339caa78355e22c61b66551077f70c5fe00f8a /oox
parent0e72992d7492f36716e73068f9f93d9f25da9b02 (diff)
fix problem with \0 in string literal
Change-Id: If605c111a1d921e404c4aca12d28c558a6659987
Diffstat (limited to 'oox')
-rw-r--r--oox/source/vml/vmldrawing.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/oox/source/vml/vmldrawing.cxx b/oox/source/vml/vmldrawing.cxx
index 5293e1ec1e31..88282dd7870f 100644
--- a/oox/source/vml/vmldrawing.cxx
+++ b/oox/source/vml/vmldrawing.cxx
@@ -56,7 +56,8 @@ namespace {
OUString lclGetShapeId( sal_Int32 nShapeId )
{
// identifier consists of a literal NUL character, a lowercase 's', and the id
- return OUString( "\0s" ) + OUString::valueOf( nShapeId );
+ sal_Unicode aStr[2] = { '\0', 's' };
+ return OUString( aStr, 2 ) + OUString::valueOf( nShapeId );
}
/** Returns the numeric VML shape identifier from its textual representation. */