diff options
author | Caolán McNamara <caolanm@redhat.com> | 2017-04-14 12:44:04 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2017-04-14 12:44:06 +0100 |
commit | 9a27902bbcfc7455d068167d8abc9645e2687ba1 (patch) | |
tree | 1eb5291bd898f8bb6203e7ed31f0a5d7c48b5c0c /include | |
parent | c6e96bb4519176edc8668e5a8ec20b43863cd61b (diff) |
ubsan: only cast when necessary
the item may be INVALID_POOL_ITEM if we're not in the bDefaultOrSet cases
so only cast when we need to
Change-Id: I127d5be0adcc0d3ad5881b2a386b8a2b69e7d3f0
Diffstat (limited to 'include')
-rw-r--r-- | include/svx/sidebar/AreaPropertyPanelBase.hxx | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/include/svx/sidebar/AreaPropertyPanelBase.hxx b/include/svx/sidebar/AreaPropertyPanelBase.hxx index 580cbc3e3122..048ee86d97a7 100644 --- a/include/svx/sidebar/AreaPropertyPanelBase.hxx +++ b/include/svx/sidebar/AreaPropertyPanelBase.hxx @@ -97,13 +97,13 @@ public: virtual void setFillStyleAndHatch(const XFillStyleItem* pStyleItem, const XFillHatchItem& aHatchItem) = 0; virtual void setFillStyleAndBitmap(const XFillStyleItem* pStyleItem, const XFillBitmapItem& aHatchItem) = 0; - void updateFillTransparence(bool bDisabled, bool bDefaultOrSet, const SfxUInt16Item* pItem); - void updateFillFloatTransparence(bool bDisabled, bool bDefaultOrSet, const XFillFloatTransparenceItem* pItem); - void updateFillStyle(bool bDisabled, bool bDefaultOrSet, const XFillStyleItem* pItem); - void updateFillGradient(bool bDisabled, bool bDefaultOrSet, const XFillGradientItem* pItem); - void updateFillHatch(bool bDisabled, bool bDefaultOrSet, const XFillHatchItem* pItem); - void updateFillColor(bool bDefaultOrSet, const XFillColorItem* pItem); - void updateFillBitmap(bool BDisabled, bool bDefaultOrSet, const XFillBitmapItem* pItem); + void updateFillTransparence(bool bDisabled, bool bDefaultOrSet, const SfxPoolItem* pState); + void updateFillFloatTransparence(bool bDisabled, bool bDefaultOrSet, const SfxPoolItem* pState); + void updateFillStyle(bool bDisabled, bool bDefaultOrSet, const SfxPoolItem* pState); + void updateFillGradient(bool bDisabled, bool bDefaultOrSet, const SfxPoolItem* pState); + void updateFillHatch(bool bDisabled, bool bDefaultOrSet, const SfxPoolItem* pState); + void updateFillColor(bool bDefaultOrSet, const SfxPoolItem* pState); + void updateFillBitmap(bool BDisabled, bool bDefaultOrSet, const SfxPoolItem* pState); protected: sal_uInt16 meLastXFS; |