summaryrefslogtreecommitdiff
path: root/bridges
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-01-29 08:16:13 +0100
committerStephan Bergmann <sbergman@redhat.com>2015-01-29 22:21:04 +0100
commit331faca18ebdd843c06fa2435ee1bf71457e76dc (patch)
tree58cd9eb7793300349bc9a4548904d6dc1f0c961e /bridges
parentab2d0ff4d7c0a3c76401b0f07b85dc2267d1eb7c (diff)
Extract loplugin:redundantcast from loplugin:cstylecast
Change-Id: I08f17dd9cc092206083ff41bbbc178e0322e86d0
Diffstat (limited to 'bridges')
-rw-r--r--bridges/source/cpp_uno/shared/vtablefactory.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/bridges/source/cpp_uno/shared/vtablefactory.cxx b/bridges/source/cpp_uno/shared/vtablefactory.cxx
index 226a994bf664..474dfcdcfaff 100644
--- a/bridges/source/cpp_uno/shared/vtablefactory.cxx
+++ b/bridges/source/cpp_uno/shared/vtablefactory.cxx
@@ -91,9 +91,9 @@ extern "C" void * SAL_CALL allocExec(
if (p == MAP_FAILED) {
p = 0;
}
- else if (mprotect (static_cast<char*>(p), n, PROT_READ | PROT_WRITE | PROT_EXEC) == -1)
+ else if (mprotect (p, n, PROT_READ | PROT_WRITE | PROT_EXEC) == -1)
{
- munmap (static_cast<char*>(p), n);
+ munmap (p, n);
p = 0;
}
#elif defined SAL_W32
@@ -109,7 +109,7 @@ extern "C" void SAL_CALL freeExec(
SAL_UNUSED_PARAMETER rtl_arena_type *, void * address, sal_Size size)
{
#if defined SAL_UNX
- munmap(static_cast< char * >(address), size);
+ munmap(address, size);
#elif defined SAL_W32
(void) size; // unused
VirtualFree(address, 0, MEM_RELEASE);