summaryrefslogtreecommitdiff
path: root/sal
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-03-31 14:50:44 +0200
committerStephan Bergmann <sbergman@redhat.com>2015-03-31 14:50:44 +0200
commitb435cce975f71367100da7e3f7691744bde42e12 (patch)
treef9340ad709227f303544671bf591b70d7893c7a8 /sal
parent44c87a5dc921ea6dd28fdc016c61aa62cfd4f4d6 (diff)
loplugin:redundantcast
Change-Id: I6c405287266572598a86b534552ed2f7bdff7fa2
Diffstat (limited to 'sal')
-rw-r--r--sal/rtl/alloc_cache.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sal/rtl/alloc_cache.cxx b/sal/rtl/alloc_cache.cxx
index 578ce33f19ac..50e2961912a4 100644
--- a/sal/rtl/alloc_cache.cxx
+++ b/sal/rtl/alloc_cache.cxx
@@ -1318,7 +1318,7 @@ void SAL_CALL
rtl_secureZeroMemory (void *Ptr, sal_Size Bytes) SAL_THROW_EXTERN_C()
{
//currently glibc doesn't implement memset_s
- volatile char *p = reinterpret_cast<volatile char*>(Ptr);
+ volatile char *p = static_cast<volatile char*>(Ptr);
while (Bytes--)
*p++ = 0;
}