summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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: */