summaryrefslogtreecommitdiff
path: root/svl
diff options
context:
space:
mode:
authorCaolán McNamara <caolan.mcnamara@collabora.com>2024-09-01 12:41:50 +0100
committerCaolán McNamara <caolan.mcnamara@collabora.com>2024-09-17 14:36:10 +0200
commit2e01d101ac9e62d5b91059a93b2d2bac681d84c6 (patch)
treec03089dc8fa094718af580cb0d5a9764a210eb65 /svl
parent7de90affa22668cf140f61aae44bcc4042f02555 (diff)
cid#1608367 silence Overflowed return value
Change-Id: If60d9607678ac9193923cad63895d654b8283ae4 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/173522 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Diffstat (limited to 'svl')
-rw-r--r--svl/source/numbers/zformat.cxx10
1 files changed, 2 insertions, 8 deletions
diff --git a/svl/source/numbers/zformat.cxx b/svl/source/numbers/zformat.cxx
index e66542f2d445..31991e8c20b5 100644
--- a/svl/source/numbers/zformat.cxx
+++ b/svl/source/numbers/zformat.cxx
@@ -1466,16 +1466,10 @@ namespace {
sal_Unicode toUniChar(sal_uInt8 n)
{
- sal_Unicode c;
if (n < 10)
- {
- c = '0' + n;
- }
+ return static_cast<sal_Unicode>('0' + n);
else
- {
- c = 'A' + n - 10;
- }
- return c;
+ return static_cast<sal_Unicode>('A' + n - 10);
}
bool IsCombiningSymbol( OUStringBuffer& rStringBuffer, sal_Int32 nPos )