Kaydet (Commit) 872036c8 authored tarafından Noel Grandin's avatar Noel Grandin

remove unused DECL_OBJHINT and IMPL_OBJHINT macros

these have been unused since we switch to using normal C++ RTTI with the
SfxHint subclasses

Change-Id: Ia271cfa01d2f49ed335e90f78309cd26d6ec9d8f
üst 948afbaf
......@@ -116,7 +116,17 @@ public:
//TODO/CLEANUP
//is apparently used only in SfxPickList/SfxFrameLoader
DECL_OBJHINT( SfxStringHint, OUString );
class SfxStringHint: public SfxSimpleHint
{
OUString aObj;
public:
SfxStringHint( sal_uInt16 nId, const OUString& rObject ):
SfxSimpleHint( nId ),
aObj(rObject) { }
const OUString& GetObject() const { return aObj; }
virtual ~SfxStringHint() {}
};
#ifndef SFX_DECL_OBJECTSHELL_DEFINED
#define SFX_DECL_OBJECTSHELL_DEFINED
......
......@@ -66,25 +66,6 @@ public:
sal_uLong GetId() const { return mnId; }
};
#define DECL_OBJHINT(Name, Type) \
class Name: public SfxSimpleHint \
{ \
Type aObj; \
\
public: \
Name( sal_uInt16 nId, const Type& rObject ); \
virtual ~Name(); \
const Type& GetObject() const { return aObj; } \
}
#define IMPL_OBJHINT(Name, Type) \
Name::Name( sal_uInt16 nID, const Type& rObject ): \
SfxSimpleHint( nID ), aObj(rObject) \
{ } \
Name::~Name() {}
#endif
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
......@@ -898,6 +898,4 @@ void SfxApplication::NotifyEvent( const SfxEventHint& rEventHint, bool bSynchron
new SfxEventAsyncer_Impl( rEventHint );
}
IMPL_OBJHINT( SfxStringHint, OUString )
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
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