summaryrefslogtreecommitdiff
path: root/sw/source/core/fields
diff options
context:
space:
mode:
authorGabor Kelemen <kelemen.gabor2@nisz.hu>2020-12-05 16:01:30 +0100
committerNoel Grandin <noel.grandin@collabora.co.uk>2020-12-26 19:22:22 +0100
commit56169b613e5830d90323c1cad31d2015a1d4cb4d (patch)
treeec63bc9f70e6a6529bae4c2c5b2dbb4e86aa738c /sw/source/core/fields
parentea14c98aaba550ecde4c4736d1a3abdc0fd451ef (diff)
Remove pointless macro
DDE_TXT_ENCODING is just an alias since 2008 commit a190965485508c4493ee33228dae68e12cd858f9 and commit cc141699cc6b2fa38b0b0003bff27751e23ae8e4 Change-Id: I2ca32871c13bd3837f173e5f9f959f364857de52 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/108330 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/source/core/fields')
-rw-r--r--sw/source/core/fields/ddefld.cxx4
1 files changed, 1 insertions, 3 deletions
diff --git a/sw/source/core/fields/ddefld.cxx b/sw/source/core/fields/ddefld.cxx
index 817545ad2a04..9e07a8afa9bf 100644
--- a/sw/source/core/fields/ddefld.cxx
+++ b/sw/source/core/fields/ddefld.cxx
@@ -38,8 +38,6 @@
using namespace ::com::sun::star;
-#define DDE_TXT_ENCODING osl_getThreadTextEncoding()
-
namespace {
class SwIntrnlRefLink : public SwBaseLink
@@ -72,7 +70,7 @@ public:
{
uno::Sequence< sal_Int8 > aSeq;
rValue >>= aSeq;
- OUString sStr( reinterpret_cast<char const *>(aSeq.getConstArray()), aSeq.getLength(), DDE_TXT_ENCODING );
+ OUString sStr( reinterpret_cast<char const *>(aSeq.getConstArray()), aSeq.getLength(), osl_getThreadTextEncoding() );
// remove not needed CR-LF at the end
sal_Int32 n = sStr.getLength();