summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-07-10 15:24:02 +0200
committerNoel Grandin <noel@peralex.com>2014-07-14 13:30:55 +0200
commit6d2178b8c82ac7d2ac054e55b4221033acfab3d8 (patch)
treebd0a4141c0906d41f2d0e3b3692f617e6cb1f97a /include
parente3246e806cad5f9d2c05c3408adc3019da5a575d (diff)
inline tools::SvRefBaseRef typedef
..it is only used in two places Change-Id: If333936b26592ed44d3525f2eb3c21aafde7dddc
Diffstat (limited to 'include')
-rw-r--r--include/sfx2/fcontnr.hxx11
-rw-r--r--include/tools/ref.hxx2
2 files changed, 5 insertions, 8 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
diff --git a/include/tools/ref.hxx b/include/tools/ref.hxx
index 4d9bc86bb180..c2365f18e931 100644
--- a/include/tools/ref.hxx
+++ b/include/tools/ref.hxx
@@ -184,8 +184,6 @@ public:
{ return nRefCount; }
};
-typedef tools::SvRef<SvRefBase> SvRefBaseRef;
-
class SvCompatWeakHdl : public SvRefBase
{
friend class SvCompatWeakBase;