summaryrefslogtreecommitdiff
path: root/shell/source
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2017-04-26 17:36:06 +0200
committerStephan Bergmann <sbergman@redhat.com>2017-04-26 17:37:13 +0200
commit3427e613c68fefd0464cb1f9806deb55ca1c3661 (patch)
tree5fdf49276c3524e9aede809f2f6b64ff03e0d14e /shell/source
parentd22ef4eb1234fc14ae965189b7a2f4e21451fd20 (diff)
loplugin:redundantcast (clang-cl)
Change-Id: I4370a16ae9652d4f1e5aa3ed472cd88ad6d210c7
Diffstat (limited to 'shell/source')
-rw-r--r--shell/source/win32/shlxthandler/infotips/infotips.cxx2
-rw-r--r--shell/source/win32/shlxthandler/ooofilt/stream_helper.cxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/shell/source/win32/shlxthandler/infotips/infotips.cxx b/shell/source/win32/shlxthandler/infotips/infotips.cxx
index 31f9bc56e144..aff286d7b68c 100644
--- a/shell/source/win32/shlxthandler/infotips/infotips.cxx
+++ b/shell/source/win32/shlxthandler/infotips/infotips.cxx
@@ -150,7 +150,7 @@ std::wstring formatSizeOfFile( DWORD dwSize )
char *buffer=nullptr;
int decimal, sign;
- double dFileSize = (double)dwSize/(double)KB;
+ double dFileSize = (double)dwSize/KB;
buffer = _fcvt( dFileSize, 1, &decimal, &sign );
diff --git a/shell/source/win32/shlxthandler/ooofilt/stream_helper.cxx b/shell/source/win32/shlxthandler/ooofilt/stream_helper.cxx
index 49adb0aa95ac..76fc42927777 100644
--- a/shell/source/win32/shlxthandler/ooofilt/stream_helper.cxx
+++ b/shell/source/win32/shlxthandler/ooofilt/stream_helper.cxx
@@ -54,7 +54,7 @@ unsigned long BufferStream::sread (unsigned char *buf, unsigned long size)
hr = stream->Read (buf, size, &newsize);
if (hr == S_OK)
- return (unsigned long)newsize;
+ return newsize;
else
return (unsigned long)0;
}