summaryrefslogtreecommitdiff
path: root/include/tools
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2019-12-04 14:01:58 +0100
committerStephan Bergmann <sbergman@redhat.com>2019-12-04 17:58:58 +0100
commitb262e1d3943cc3b955725c9b15867a8ced85b18e (patch)
tree080eb3597b9e9bb7af74d0efaefb82fea21b3799 /include/tools
parent20d5f61abfd47fc76da3be8241653fdb7ae10491 (diff)
Use SAL_STRINGIFY
Change-Id: I2bfc35ee72ab0a27902aa8382ccb6b6dce9126be Reviewed-on: https://gerrit.libreoffice.org/84406 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'include/tools')
-rw-r--r--include/tools/link.hxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/include/tools/link.hxx b/include/tools/link.hxx
index b127a79054d0..6fea12fea984 100644
--- a/include/tools/link.hxx
+++ b/include/tools/link.hxx
@@ -22,6 +22,7 @@
#include <sal/config.h>
+#include <sal/macros.h>
#include <sal/types.h>
#define DECL_LINK(Member, ArgType, RetType) \
@@ -68,10 +69,8 @@
SAL_UNUSED_PARAMETER Class *, SAL_UNUSED_PARAMETER ArgType)
#ifdef DBG_UTIL
-#define XSTRINGIFY(X) #X
-#define STRINGIFY(X) XSTRINGIFY(X)
#define LINK(Instance, Class, Member) ::tools::detail::makeLink( \
- ::tools::detail::castTo<Class *>(Instance), &Class::LinkStub##Member, __FILE__, __LINE__, STRINGIFY(Class::LinkStub##Member))
+ ::tools::detail::castTo<Class *>(Instance), &Class::LinkStub##Member, __FILE__, __LINE__, SAL_STRINGIFY(Class::LinkStub##Member))
#else
#define LINK(Instance, Class, Member) ::tools::detail::makeLink( \
::tools::detail::castTo<Class *>(Instance), &Class::LinkStub##Member)