diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2019-10-19 15:41:59 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2019-10-19 16:52:22 +0200 |
commit | 7320d7a4a4dd0657f2d650a6f580ad399529f0f1 (patch) | |
tree | d6d4e3865290d2bbbbed0fcc13ae9981f648ca3f /sw/source/ui | |
parent | 766cdd869d7d983e9e171a3eae0629cb9a0206ff (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 'sw/source/ui')
-rw-r--r-- | sw/source/ui/vba/vbatablehelper.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/ui/vba/vbatablehelper.cxx b/sw/source/ui/vba/vbatablehelper.cxx index 45de339fb978..a106668f0c39 100644 --- a/sw/source/ui/vba/vbatablehelper.cxx +++ b/sw/source/ui/vba/vbatablehelper.cxx @@ -104,9 +104,9 @@ OUString SwVbaTableHelper::getColumnStr( sal_Int32 nCol ) do{ nCalc = nCol % coDiff; if( nCalc >= 26 ) - sRet = OUStringChar( 'a' - 26 + nCalc ) + sRet; + sRet = OUStringChar( sal_Unicode('a' - 26 + nCalc) ) + sRet; else - sRet = OUStringChar( 'A' + nCalc ) + sRet; + sRet = OUStringChar( sal_Unicode('A' + nCalc) ) + sRet; if( 0 == ( nCol = nCol - nCalc ) ) break; |