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; ...@@ -47,16 +47,15 @@ typedef sal_uInt16 SfxFilterContainerFlags;
class SfxRefItem : public SfxPoolItem class SfxRefItem : public SfxPoolItem
{ {
SvRefBaseRef aRef; tools::SvRef<SvRefBase> maRef;
public: public:
SfxRefItem( sal_uInt16 nWhichId, const tools::SvRef<SvRefBase>& rValue ) : SfxPoolItem( nWhichId )
{ maRef = rValue; }
virtual SfxPoolItem* Clone( SfxItemPool* = 0 ) const SAL_OVERRIDE virtual SfxPoolItem* Clone( SfxItemPool* = 0 ) const SAL_OVERRIDE
{ return new SfxRefItem( *this ); } { return new SfxRefItem( *this ); }
virtual bool operator==( const SfxPoolItem& rL) const SAL_OVERRIDE virtual bool operator==( const SfxPoolItem& rL) const SAL_OVERRIDE
{ return ((SfxRefItem&)rL).aRef == aRef; } { return ((SfxRefItem&)rL).maRef == maRef; }
SfxRefItem( sal_uInt16 nWhichId, const SvRefBaseRef& rValue ) : SfxPoolItem( nWhichId ) const tools::SvRef<SvRefBase>& GetValue() const { return maRef; }
{ aRef = rValue; }
const SvRefBaseRef& GetValue() const { return aRef; }
}; };
class SfxFrameWindow class SfxFrameWindow
......
...@@ -184,8 +184,6 @@ public: ...@@ -184,8 +184,6 @@ public:
{ return nRefCount; } { return nRefCount; }
}; };
typedef tools::SvRef<SvRefBase> SvRefBaseRef;
class SvCompatWeakHdl : public SvRefBase class SvCompatWeakHdl : public SvRefBase
{ {
friend class SvCompatWeakBase; friend class SvCompatWeakBase;
......
...@@ -108,7 +108,7 @@ struct SfxObjectShell_Impl : public ::sfx2::IMacroDocumentAccess ...@@ -108,7 +108,7 @@ struct SfxObjectShell_Impl : public ::sfx2::IMacroDocumentAccess
SfxModule* pModule; SfxModule* pModule;
SfxObjectShellFlags eFlags; SfxObjectShellFlags eFlags;
bool bReadOnlyUI; bool bReadOnlyUI;
SvRefBaseRef xHeaderAttributes; tools::SvRef<SvRefBase> xHeaderAttributes;
::rtl::Reference< SfxBaseModel > ::rtl::Reference< SfxBaseModel >
pBaseModel; pBaseModel;
sal_uInt16 nStyleFilter; 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