Kaydet (Commit) 6d2178b8 authored tarafından Noel Grandin's avatar Noel Grandin

inline tools::SvRefBaseRef typedef

..it is only used in two places

Change-Id: If333936b26592ed44d3525f2eb3c21aafde7dddc
üst e3246e80
......@@ -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
......
......@@ -184,8 +184,6 @@ public:
{ return nRefCount; }
};
typedef tools::SvRef<SvRefBase> SvRefBaseRef;
class SvCompatWeakHdl : public SvRefBase
{
friend class SvCompatWeakBase;
......
......@@ -108,7 +108,7 @@ struct SfxObjectShell_Impl : public ::sfx2::IMacroDocumentAccess
SfxModule* pModule;
SfxObjectShellFlags eFlags;
bool bReadOnlyUI;
SvRefBaseRef xHeaderAttributes;
tools::SvRef<SvRefBase> xHeaderAttributes;
::rtl::Reference< SfxBaseModel >
pBaseModel;
sal_uInt16 nStyleFilter;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment