diff options
author | Noel Grandin <noel@peralex.com> | 2014-08-27 16:57:21 +0200 |
---|---|---|
committer | Norbert Thiebaud <nthiebaud@gmail.com> | 2014-09-06 15:47:44 -0500 |
commit | 5bce32904091ffe28884fd5c0f4801ee82bad101 (patch) | |
tree | fc2573078a858de456a0dc7b7810176d433241c7 /include/svl/smplhint.hxx | |
parent | 10143717834d8401d85fdf9564e782a58b9983ec (diff) |
SfxHint: convert home-grown RTTI to normal C++ RTTI
Also note that I fixed a bug in SvxFontMenuControl::Notify
where the if statement had the check the wrong way around.
Change-Id: I611e8929c65818191e36bd80f2b985820ada4411
Reviewed-on: https://gerrit.libreoffice.org/11147
Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com>
Tested-by: Norbert Thiebaud <nthiebaud@gmail.com>
Diffstat (limited to 'include/svl/smplhint.hxx')
-rw-r--r-- | include/svl/smplhint.hxx | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/include/svl/smplhint.hxx b/include/svl/smplhint.hxx index 8189a005456b..058b91cd43d9 100644 --- a/include/svl/smplhint.hxx +++ b/include/svl/smplhint.hxx @@ -21,7 +21,7 @@ #include <svl/svldllapi.h> #include <svl/hint.hxx> -#include <tools/rtti.hxx> +#include <tools/solar.h> #define SFX_HINT_DYING 0x00000001 #define SFX_HINT_NAMECHANGED 0x00000002 @@ -62,7 +62,6 @@ class SVL_DLLPUBLIC SfxSimpleHint: public SfxHint private: sal_uLong mnId; public: - TYPEINFO_OVERRIDE(); SfxSimpleHint( sal_uLong nId ) { mnId = nId; } sal_uLong GetId() const { return mnId; } }; @@ -75,14 +74,12 @@ public: Type aObj; \ \ public: \ - TYPEINFO_OVERRIDE(); \ Name( sal_uInt16 nId, const Type& rObject ); \ virtual ~Name(); \ const Type& GetObject() const { return aObj; } \ } #define IMPL_OBJHINT(Name, Type) \ - TYPEINIT1(Name, SfxSimpleHint); \ Name::Name( sal_uInt16 nID, const Type& rObject ): \ SfxSimpleHint( nID ), aObj(rObject) \ { } \ |