summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-10-15 10:41:58 +0200
committerNoel Grandin <noel@peralex.com>2014-10-15 10:42:50 +0200
commit872036c8e2e4a098a528a7f0083201433786d331 (patch)
tree1045624313866c349e12cfd81eb72abe8952b910
parent948afbaf3901909a62f06a73698a6172d3bc6d45 (diff)
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
-rw-r--r--include/sfx2/app.hxx12
-rw-r--r--include/svl/smplhint.hxx19
-rw-r--r--sfx2/source/appl/appcfg.cxx2
3 files changed, 11 insertions, 22 deletions
diff --git a/include/sfx2/app.hxx b/include/sfx2/app.hxx
index 8017757af96b..5993561ac0fe 100644
--- a/include/sfx2/app.hxx
+++ b/include/sfx2/app.hxx
@@ -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
diff --git a/include/svl/smplhint.hxx b/include/svl/smplhint.hxx
index 058b91cd43d9..fdef63e45202 100644
--- a/include/svl/smplhint.hxx
+++ b/include/svl/smplhint.hxx
@@ -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: */
diff --git a/sfx2/source/appl/appcfg.cxx b/sfx2/source/appl/appcfg.cxx
index f956a4885723..e4bf24273e28 100644
--- a/sfx2/source/appl/appcfg.cxx
+++ b/sfx2/source/appl/appcfg.cxx
@@ -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: */