summaryrefslogtreecommitdiffstats
path: root/shell/source/win32/shlxthandler/ooofilt/stream_helper.cxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2018-01-22 13:11:34 +0100
committerStephan Bergmann <sbergman@redhat.com>2018-01-23 07:54:51 +0100
commit9af8f190ed1bf3f76897ad0c078db16451d6fb69 (patch)
tree015089ee72a67eca7db999845cabb8104c8ce3aa /shell/source/win32/shlxthandler/ooofilt/stream_helper.cxx
parentUSHRT_MAX -> SAL_MAX_UINT16 in IndexBitSet (diff)
downloadcore-9af8f190ed1bf3f76897ad0c078db16451d6fb69.tar.gz
core-9af8f190ed1bf3f76897ad0c078db16451d6fb69.zip
More loplugin:cstylecast on Windows
Automatic rewrite (of loplugin:cstylecast and loplugin:unnecessaryparen) after cab0427cadddb3aaf1349c66f2fa13a4234ba4b2 "Enable loplugin:cstylecast for some more cases" and a409d32e7f6fc09e041079d6dbc3c927497adfed "More loplugin:cstylecast" Change-Id: Ib3355159dd08333e1b7a8d091caf2069cdcc7862 Reviewed-on: https://gerrit.libreoffice.org/48317 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'shell/source/win32/shlxthandler/ooofilt/stream_helper.cxx')
-rw-r--r--shell/source/win32/shlxthandler/ooofilt/stream_helper.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/shell/source/win32/shlxthandler/ooofilt/stream_helper.cxx b/shell/source/win32/shlxthandler/ooofilt/stream_helper.cxx
index 3c734be76fe4..0d0e475ef678 100644
--- a/shell/source/win32/shlxthandler/ooofilt/stream_helper.cxx
+++ b/shell/source/win32/shlxthandler/ooofilt/stream_helper.cxx
@@ -59,7 +59,7 @@ unsigned long BufferStream::sread (unsigned char *buf, unsigned long size)
if (hr == S_OK)
return newsize;
else
- return (unsigned long)0;
+ return static_cast<unsigned long>(0);
}
long BufferStream::stell ()
@@ -72,7 +72,7 @@ long BufferStream::stell ()
hr = stream->Seek (Move, STREAM_SEEK_CUR, &NewPosition);
if (hr == S_OK)
- return (long) NewPosition.QuadPart;
+ return static_cast<long>(NewPosition.QuadPart);
else
return -1;
}
@@ -82,7 +82,7 @@ long BufferStream::sseek (long offset, int origin)
HRESULT hr;
LARGE_INTEGER Move;
DWORD dwOrigin;
- Move.QuadPart = (__int64)offset;
+ Move.QuadPart = static_cast<__int64>(offset);
switch (origin)
{