diff options
author | Caolán McNamara <caolanm@redhat.com> | 2013-01-30 10:40:45 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2013-01-30 10:49:35 +0000 |
commit | d7ecbd0e655efb193da1561649ebd13fdd2f5af1 (patch) | |
tree | 387cdf66100dd07e4a1e6ad851611be39a64f779 /svx | |
parent | a50ee91a17374d3ccfe277d9a0d27599a6ada789 (diff) |
the name field for SdrShadowColorItem seems to be redundant now
Change-Id: I6e90cdfc9577bfa0ee1dd1018a41aa7979dfaf04
Diffstat (limited to 'svx')
-rw-r--r-- | svx/inc/svx/sdshcitm.hxx | 7 | ||||
-rw-r--r-- | svx/inc/svx/xcolit.hxx | 1 | ||||
-rw-r--r-- | svx/source/svdraw/svdattr.cxx | 2 | ||||
-rw-r--r-- | svx/source/xoutdev/xattr.cxx | 6 |
4 files changed, 10 insertions, 6 deletions
diff --git a/svx/inc/svx/sdshcitm.hxx b/svx/inc/svx/sdshcitm.hxx index 31513480fd15..f399a069ee61 100644 --- a/svx/inc/svx/sdshcitm.hxx +++ b/svx/inc/svx/sdshcitm.hxx @@ -25,11 +25,8 @@ class SdrShadowColorItem: public XColorItem { public: - SdrShadowColorItem() - { - } - SdrShadowColorItem(const String& rName, const Color& rTheColor) - : XColorItem(SDRATTR_SHADOWCOLOR, rName, rTheColor) + SdrShadowColorItem(const Color& rTheColor) + : XColorItem(SDRATTR_SHADOWCOLOR, rTheColor) { } }; diff --git a/svx/inc/svx/xcolit.hxx b/svx/inc/svx/xcolit.hxx index fa56a2844092..461c2b38af7e 100644 --- a/svx/inc/svx/xcolit.hxx +++ b/svx/inc/svx/xcolit.hxx @@ -42,6 +42,7 @@ public: virtual bool QueryValue( com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) const; virtual bool PutValue( const com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 ); + XColorItem(sal_uInt16 nWhich, const Color& rTheColor); XColorItem(sal_uInt16 nWhich, const String& rName, const Color& rTheColor); XColorItem(sal_uInt16 nWhich, SvStream& rIn); XColorItem(const XColorItem& rItem); diff --git a/svx/source/svdraw/svdattr.cxx b/svx/source/svdraw/svdattr.cxx index 534ffc6cf8c2..fe533855537f 100644 --- a/svx/source/svdraw/svdattr.cxx +++ b/svx/source/svdraw/svdattr.cxx @@ -95,7 +95,7 @@ SdrItemPool::SdrItemPool( // init own PoolDefaults mppLocalPoolDefaults[SDRATTR_SHADOW -SDRATTR_START]=new SdrShadowItem; - mppLocalPoolDefaults[SDRATTR_SHADOWCOLOR -SDRATTR_START]=new SdrShadowColorItem(OUString(),aNullCol); + mppLocalPoolDefaults[SDRATTR_SHADOWCOLOR -SDRATTR_START]=new SdrShadowColorItem(aNullCol); mppLocalPoolDefaults[SDRATTR_SHADOWXDIST -SDRATTR_START]=new SdrShadowXDistItem; mppLocalPoolDefaults[SDRATTR_SHADOWYDIST -SDRATTR_START]=new SdrShadowYDistItem; mppLocalPoolDefaults[SDRATTR_SHADOWTRANSPARENCE-SDRATTR_START]=new SdrShadowTransparenceItem; diff --git a/svx/source/xoutdev/xattr.cxx b/svx/source/xoutdev/xattr.cxx index 561f29514c7c..06515876bda8 100644 --- a/svx/source/xoutdev/xattr.cxx +++ b/svx/source/xoutdev/xattr.cxx @@ -336,6 +336,12 @@ XColorItem::XColorItem(sal_uInt16 _nWhich, const XubString& rName, const Color& { } +XColorItem::XColorItem(sal_uInt16 _nWhich, const Color& rTheColor) + : NameOrIndex(_nWhich, OUString()) + , aColor(rTheColor) +{ +} + /************************************************************************* |* |* XColorItem::XColorItem(const XColorItem& rItem) |