diff options
author | Bjoern Michaelsen <bjoern.michaelsen@canonical.com> | 2017-03-17 16:09:35 +0100 |
---|---|---|
committer | Björn Michaelsen <bjoern.michaelsen@canonical.com> | 2017-03-18 00:35:05 +0000 |
commit | c16a4380fe6bdf6782ef706f4f92d904e0413820 (patch) | |
tree | 1dd34f4e640f8cbdc3d381d98e18ea1f8000e383 /include | |
parent | 93412700af6a6f6b6caa645434b7f40c92a7615b (diff) |
remove EE_RESSTR preprocessor abuse
Change-Id: I83b35c4e2d4275ac76a36bec03807be69a605c58
Reviewed-on: https://gerrit.libreoffice.org/35370
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Björn Michaelsen <bjoern.michaelsen@canonical.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/editeng/eerdll.hxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/include/editeng/eerdll.hxx b/include/editeng/eerdll.hxx index add71ce5adac..05ad3d64dce7 100644 --- a/include/editeng/eerdll.hxx +++ b/include/editeng/eerdll.hxx @@ -20,20 +20,22 @@ #ifndef INCLUDED_EDITENG_EERDLL_HXX #define INCLUDED_EDITENG_EERDLL_HXX +#include <tools/resid.hxx> +#include <editeng/editengdllapi.h> +#include <memory> + class GlobalEditData; namespace editeng { class SharedVclResources; } -#include <tools/resid.hxx> -#include <editeng/editengdllapi.h> -#include <memory> - class EDITENG_DLLPUBLIC EditResId: public ResId { public: EditResId( sal_uInt16 nId ); + static OUString GetString(sal_uInt16 nId) + { return EditResId(nId).toString(); } }; class EditDLL @@ -51,8 +53,6 @@ public: static EditDLL& Get(); }; -#define EE_RESSTR(x) EditResId(x).toString() - #endif // INCLUDED_EDITENG_EERDLL_HXX /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |