diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-03-28 19:07:13 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-03-28 19:09:26 +0100 |
commit | 116b969fc9916a0414d79e5276623b8b8dcc5f3d (patch) | |
tree | 58d256c618896aa9de549242bc4b07276964f5fb /stoc/source/corereflection/base.hxx | |
parent | 8b2779bf61993ead742a95f3abda5d96a7a86644 (diff) |
Clean up C-style casts from pointers to void
Change-Id: I2ac79c757d9116d35436ae1adc0e11e7040e725d
Diffstat (limited to 'stoc/source/corereflection/base.hxx')
-rw-r--r-- | stoc/source/corereflection/base.hxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/stoc/source/corereflection/base.hxx b/stoc/source/corereflection/base.hxx index 7e6eaf0efb7f..7c83960acd4f 100644 --- a/stoc/source/corereflection/base.hxx +++ b/stoc/source/corereflection/base.hxx @@ -403,11 +403,11 @@ inline bool coerce_assign( css::uno::Reference< css::uno::XInterface > xVal; if (extract( rSource, reinterpret_cast<typelib_InterfaceTypeDescription *>(pTD), xVal, pRefl )) { - if (*(css::uno::XInterface **)pDest) - (*(css::uno::XInterface **)pDest)->release(); - *(css::uno::XInterface **)pDest = xVal.get(); - if (*(css::uno::XInterface **)pDest) - (*(css::uno::XInterface **)pDest)->acquire(); + if (*static_cast<css::uno::XInterface **>(pDest)) + (*static_cast<css::uno::XInterface **>(pDest))->release(); + *static_cast<css::uno::XInterface **>(pDest) = xVal.get(); + if (*static_cast<css::uno::XInterface **>(pDest)) + (*static_cast<css::uno::XInterface **>(pDest))->acquire(); return true; } return false; |