summaryrefslogtreecommitdiff
path: root/include/sfx2
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-03-28 19:06:33 +0100
committerStephan Bergmann <sbergman@redhat.com>2015-03-28 19:09:25 +0100
commit65e9940d8d13e0e2ac9cac3421955124d1c73390 (patch)
tree089685d7ac1e2978bba363900b02b9f3cc015452 /include/sfx2
parent8d6c8d7fa0a4c56ebcf9d141d8cd99706d756991 (diff)
Clean up C-style casts from pointers to void
Change-Id: I717c260ecdc378a9fd33494f2b98eccec0417d66
Diffstat (limited to 'include/sfx2')
-rw-r--r--include/sfx2/msg.hxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/sfx2/msg.hxx b/include/sfx2/msg.hxx
index 52cf3444b326..58785ff82d5d 100644
--- a/include/sfx2/msg.hxx
+++ b/include/sfx2/msg.hxx
@@ -117,7 +117,7 @@ struct SfxType
const TypeId& Type() const
{ return aTypeId; }
SfxPoolItem* CreateItem() const
- { return (SfxPoolItem*) aTypeId(); }
+ { return static_cast<SfxPoolItem*>(aTypeId()); }
};
struct SfxType0
@@ -128,7 +128,7 @@ struct SfxType0
const TypeId& Type() const
{ return aTypeId; }
SfxPoolItem* CreateItem() const
- { return (SfxPoolItem*) aTypeId(); }
+ { return static_cast<SfxPoolItem*>(aTypeId()); }
};
#define SFX_DECL_TYPE(n) struct SfxType##n \
@@ -211,7 +211,7 @@ struct SfxFormalArgument
const TypeId& Type() const
{ return pType->aTypeId; }
SfxPoolItem* CreateItem() const
- { return (SfxPoolItem*) pType->aTypeId(); }
+ { return static_cast<SfxPoolItem*>(pType->aTypeId()); }
};