summaryrefslogtreecommitdiff
path: root/shell/source/win32/shlxthandler/ooofilt/stream_helper.cxx
diff options
context:
space:
mode:
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)
{