summaryrefslogtreecommitdiff
path: root/embeddedobj/source
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2019-10-19 15:41:59 +0200
committerStephan Bergmann <sbergman@redhat.com>2019-10-19 16:52:22 +0200
commit7320d7a4a4dd0657f2d650a6f580ad399529f0f1 (patch)
treed6d4e3865290d2bbbbed0fcc13ae9981f648ca3f /embeddedobj/source
parent766cdd869d7d983e9e171a3eae0629cb9a0206ff (diff)
OUStringChar must either take a sal_Unicode or an ASCII char
...so forbid anything else, to avoid issues like the one described in 766cdd869d7d983e9e171a3eae0629cb9a0206ff "This code wants to add the numeric SvxRotateMode value". Some remaining places that apparently do want to convert some numeric value to sal_Unicode have been augmented with an explicit cast. Change-Id: I6200a84e250e697bc88694bd71142ca1d9a13651 Reviewed-on: https://gerrit.libreoffice.org/81132 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'embeddedobj/source')
-rw-r--r--embeddedobj/source/msole/ownview.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/embeddedobj/source/msole/ownview.cxx b/embeddedobj/source/msole/ownview.cxx
index 244ab320e270..7d938cfd15ba 100644
--- a/embeddedobj/source/msole/ownview.cxx
+++ b/embeddedobj/source/msole/ownview.cxx
@@ -289,7 +289,7 @@ bool OwnView_Impl::ReadContentsAndGenerateTempFile( const uno::Reference< io::XI
aReadSeq[0] == '.'
)
{
- aFileSuffix += OUStringChar( aReadSeq[0] );
+ aFileSuffix += OUStringChar( sal_Unicode(aReadSeq[0]) );
}
} while( aReadSeq[0] );