summaryrefslogtreecommitdiff
path: root/sfx2/source
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2020-01-17 13:55:18 +0100
committerStephan Bergmann <sbergman@redhat.com>2020-01-17 15:36:59 +0100
commitac8ec39c0e0cc2244d2e155d9e256b4e2ded5415 (patch)
tree75fdd66adcfeb994594471b3c454f615fa751d5e /sfx2/source
parent645ed8df78bca372bc9d077db7e797e4b91e67cd (diff)
Avoid unnecessary explicit cast
...which would only hide unexpected conversion failure, should it ever be possible to happen, from tools like -fsanitize=integer Change-Id: Ic2beab11078a40e16b92ce9ac868d296de028200 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/86977 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'sfx2/source')
-rw-r--r--sfx2/source/bastyp/mieclip.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sfx2/source/bastyp/mieclip.cxx b/sfx2/source/bastyp/mieclip.cxx
index dd3871db719a..c99c61f045d6 100644
--- a/sfx2/source/bastyp/mieclip.cxx
+++ b/sfx2/source/bastyp/mieclip.cxx
@@ -79,7 +79,7 @@ SvStream* MSE40HTMLClipFormatObj::IsValid( SvStream& rStream )
if (nFragStart > 0 && nFragEnd > 0 && nFragEnd > nFragStart)
{
- size_t nSize = static_cast<size_t>(nFragEnd - nFragStart + 1);
+ size_t nSize = nFragEnd - nFragStart + 1;
if (nSize < 0x10000L)
{
rStream.Seek(nFragStart);