diff options
author | Noel Grandin <noel@peralex.com> | 2014-07-10 15:24:02 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-07-14 13:30:55 +0200 |
commit | 6d2178b8c82ac7d2ac054e55b4221033acfab3d8 (patch) | |
tree | bd0a4141c0906d41f2d0e3b3692f617e6cb1f97a /include/sfx2/fcontnr.hxx | |
parent | e3246e806cad5f9d2c05c3408adc3019da5a575d (diff) |
inline tools::SvRefBaseRef typedef
..it is only used in two places
Change-Id: If333936b26592ed44d3525f2eb3c21aafde7dddc
Diffstat (limited to 'include/sfx2/fcontnr.hxx')
-rw-r--r-- | include/sfx2/fcontnr.hxx | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/include/sfx2/fcontnr.hxx b/include/sfx2/fcontnr.hxx index 8c3881ae2658..96ebdcda01ae 100644 --- a/include/sfx2/fcontnr.hxx +++ b/include/sfx2/fcontnr.hxx @@ -47,16 +47,15 @@ typedef sal_uInt16 SfxFilterContainerFlags; class SfxRefItem : public SfxPoolItem { - SvRefBaseRef aRef; + tools::SvRef<SvRefBase> maRef; public: + SfxRefItem( sal_uInt16 nWhichId, const tools::SvRef<SvRefBase>& rValue ) : SfxPoolItem( nWhichId ) + { maRef = rValue; } virtual SfxPoolItem* Clone( SfxItemPool* = 0 ) const SAL_OVERRIDE { return new SfxRefItem( *this ); } virtual bool operator==( const SfxPoolItem& rL) const SAL_OVERRIDE - { return ((SfxRefItem&)rL).aRef == aRef; } - SfxRefItem( sal_uInt16 nWhichId, const SvRefBaseRef& rValue ) : SfxPoolItem( nWhichId ) - { aRef = rValue; } - const SvRefBaseRef& GetValue() const { return aRef; } - + { return ((SfxRefItem&)rL).maRef == maRef; } + const tools::SvRef<SvRefBase>& GetValue() const { return maRef; } }; class SfxFrameWindow |