summaryrefslogtreecommitdiff
path: root/svx/inc/sxlayitm.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'svx/inc/sxlayitm.hxx')
-rw-r--r--svx/inc/sxlayitm.hxx6
1 files changed, 4 insertions, 2 deletions
diff --git a/svx/inc/sxlayitm.hxx b/svx/inc/sxlayitm.hxx
index be444bec33dd..5c8c42d21c50 100644
--- a/svx/inc/sxlayitm.hxx
+++ b/svx/inc/sxlayitm.hxx
@@ -26,14 +26,16 @@
class SdrLayerIdItem final : public SfxInt16Item {
public:
- SdrLayerIdItem(SdrLayerID nId): SfxInt16Item(SDRATTR_LAYERID,nId.get()) {}
+ SdrLayerIdItem(SdrLayerID nId):
+ SfxInt16Item(SDRATTR_LAYERID,nId.get(), SfxItemType::SdrLayerIdItemType) {}
SdrLayerID GetValue() const { return SdrLayerID(SfxInt16Item::GetValue()); }
virtual SdrLayerIdItem* Clone(SfxItemPool* pPool=nullptr) const override;
};
class SdrLayerNameItem final : public SfxStringItem {
public:
- SdrLayerNameItem() : SfxStringItem() { SetWhich(SDRATTR_LAYERNAME); }
+ SdrLayerNameItem()
+ : SfxStringItem(SDRATTR_LAYERNAME, SfxItemType::SdrLayerNameItemType) {}
SdrLayerNameItem(const OUString& rStr) : SfxStringItem(SDRATTR_LAYERNAME,rStr) {}
virtual SdrLayerNameItem* Clone(SfxItemPool* pPool=nullptr) const override;
};