summaryrefslogtreecommitdiffstats
path: root/idlc/source/astdump.cxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-03-29 09:17:00 +0200
committerStephan Bergmann <sbergman@redhat.com>2015-03-29 09:17:47 +0200
commit0bd502af47b53bc4340df7874bd726361e3bbad9 (patch)
tree813d8fb60a4a5fe8bf4cbf316fb73621247647f3 /idlc/source/astdump.cxx
parentmake gbuild a bit more quiet by default (diff)
downloadcore-0bd502af47b53bc4340df7874bd726361e3bbad9.tar.gz
core-0bd502af47b53bc4340df7874bd726361e3bbad9.zip
Clean up remaining C-style casts among void pointers
Change-Id: I1b49c020d597b569e330482f4dbf20c15ccdae3f
Diffstat (limited to 'idlc/source/astdump.cxx')
-rw-r--r--idlc/source/astdump.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/idlc/source/astdump.cxx b/idlc/source/astdump.cxx
index e0f786b68505..5b6938c80d80 100644
--- a/idlc/source/astdump.cxx
+++ b/idlc/source/astdump.cxx
@@ -87,7 +87,7 @@ bool AstModule::dump(RegistryKey& rKey)
void const * pBlob = aBlob.getBlob(&aBlobSize);
if (localKey.setValue(emptyStr, RG_VALUETYPE_BINARY,
- (RegValue)pBlob, aBlobSize))
+ const_cast<RegValue>(pBlob), aBlobSize))
{
fprintf(stderr, "%s: warning, could not set value of key \"%s\" in %s\n",
idlc()->getOptions()->getProgramName().getStr(),
@@ -112,7 +112,7 @@ bool AstModule::dump(RegistryKey& rKey)
if ( getNodeType() != NT_root )
{
if (localKey.setValue(emptyStr, RG_VALUETYPE_BINARY,
- (RegValue)pBlob, aBlobSize))
+ const_cast<RegValue>(pBlob), aBlobSize))
{
fprintf(stderr, "%s: warning, could not set value of key \"%s\" in %s\n",
idlc()->getOptions()->getProgramName().getStr(),
@@ -152,7 +152,7 @@ bool AstTypeDef::dump(RegistryKey& rKey)
sal_uInt32 aBlobSize;
void const * pBlob = aBlob.getBlob(&aBlobSize);
- if (localKey.setValue(emptyStr, RG_VALUETYPE_BINARY, (RegValue)pBlob, aBlobSize))
+ if (localKey.setValue(emptyStr, RG_VALUETYPE_BINARY, const_cast<RegValue>(pBlob), aBlobSize))
{
fprintf(stderr, "%s: warning, could not set value of key \"%s\" in %s\n",
idlc()->getOptions()->getProgramName().getStr(),