expand and remove DECL_PTRHINT macro
since there are only 2 uses of it Change-Id: I49543168d5d9aeaae66d99663707657d67002fdc Reviewed-on: https://gerrit.libreoffice.org/15531 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
This commit is contained in:
@@ -28,24 +28,6 @@ public:
|
||||
};
|
||||
|
||||
|
||||
|
||||
#define DECL_PTRHINT(Visibility, Name, Type) \
|
||||
class Visibility Name: public SfxHint \
|
||||
{ \
|
||||
Type* pObj; \
|
||||
\
|
||||
public: \
|
||||
explicit Name( Type* Object ); \
|
||||
virtual ~Name(); \
|
||||
\
|
||||
Type* GetObject() const { return pObj; } \
|
||||
}
|
||||
|
||||
#define IMPL_PTRHINT(Name, Type) \
|
||||
Name::Name( Type* pObject ) { pObj = pObject; } \
|
||||
Name::~Name() {}
|
||||
|
||||
|
||||
#endif
|
||||
|
||||
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|
||||
|
@@ -107,7 +107,14 @@ public:
|
||||
};
|
||||
|
||||
// broadcasted from PutUrl().
|
||||
DECL_PTRHINT (SVL_DLLPUBLIC, INetURLHistoryHint, const INetURLObject);
|
||||
class SVL_DLLPUBLIC INetURLHistoryHint: public SfxHint
|
||||
{
|
||||
const INetURLObject* pObj;
|
||||
public:
|
||||
explicit INetURLHistoryHint( const INetURLObject* Object ) : pObj(Object) {}
|
||||
virtual ~INetURLHistoryHint() {}
|
||||
const INetURLObject* GetObject() const { return pObj; }
|
||||
};
|
||||
|
||||
#endif // INCLUDED_SVL_INETHIST_HXX
|
||||
|
||||
|
@@ -339,7 +339,14 @@ public:
|
||||
};
|
||||
|
||||
|
||||
DECL_PTRHINT(SVL_DLLPUBLIC, SfxPoolItemHint, SfxPoolItem);
|
||||
class SVL_DLLPUBLIC SfxPoolItemHint: public SfxHint
|
||||
{
|
||||
SfxPoolItem* pObj;
|
||||
public:
|
||||
explicit SfxPoolItemHint( SfxPoolItem* Object ) : pObj(Object) {}
|
||||
virtual ~SfxPoolItemHint() {}
|
||||
SfxPoolItem* GetObject() const { return pObj; }
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
@@ -40,8 +40,6 @@ const char* pw4 = "Wow! 50.000.000 items!";
|
||||
const char* pw5 = "Wow! 10.000.000 items!";
|
||||
#endif
|
||||
|
||||
IMPL_PTRHINT(SfxPoolItemHint,SfxPoolItem)
|
||||
|
||||
SfxPoolItem::SfxPoolItem(sal_uInt16 const nWhich)
|
||||
: m_nRefCount(0)
|
||||
, m_nWhich(nWhich)
|
||||
|
@@ -41,11 +41,6 @@
|
||||
#define INETHIST_SIZE_LIMIT 1024
|
||||
#define INETHIST_MAGIC_HEAD 0x484D4849UL
|
||||
|
||||
/*
|
||||
* INetURLHistoryHint implementation.
|
||||
*/
|
||||
IMPL_PTRHINT (INetURLHistoryHint, const INetURLObject);
|
||||
|
||||
class INetURLHistory_Impl: private boost::noncopyable
|
||||
{
|
||||
struct head_entry
|
||||
|
Reference in New Issue
Block a user