summaryrefslogtreecommitdiff
path: root/sw/source/uibase
diff options
context:
space:
mode:
authorMike Kaganski <mike.kaganski@collabora.com>2023-02-27 09:26:41 +0300
committerMike Kaganski <mike.kaganski@collabora.com>2023-02-27 09:54:16 +0000
commit59bc90c9d60b5f425f29ce42d1db9381eb2c1f4d (patch)
treeeda56d3b56277a6c549f379c274db3fca3a5c3af /sw/source/uibase
parent41b991ea0cf3f8ce36cbdbf16b9c2c6d2bb16b5d (diff)
Use SAL_NEWLINE_STRING to avoid some wheel re-invention
Change-Id: Ib60ddf2b1111fb2d6caf22ac6e0848bd27373b9e Reviewed-on: https://gerrit.libreoffice.org/c/core/+/147750 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'sw/source/uibase')
-rw-r--r--sw/source/uibase/envelp/envimg.cxx10
1 files changed, 3 insertions, 7 deletions
diff --git a/sw/source/uibase/envelp/envimg.cxx b/sw/source/uibase/envelp/envimg.cxx
index 317179e570c2..b36cfdfa51f3 100644
--- a/sw/source/uibase/envelp/envimg.cxx
+++ b/sw/source/uibase/envelp/envimg.cxx
@@ -17,6 +17,8 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
+#include <sal/config.h>
+
#include <o3tl/any.hxx>
#include <o3tl/string_view.hxx>
#include <osl/diagnose.h>
@@ -34,12 +36,6 @@
#include <unomid.h>
-#ifdef _WIN32
-constexpr OUStringLiteral NEXTLINE = u"\r\n";
-#else
-constexpr OUStringLiteral NEXTLINE = u"\n";
-#endif
-
using namespace utl;
using namespace ::com::sun::star::uno;
@@ -68,7 +64,7 @@ OUString MakeSender()
else if (sToken == u"CR")
{
if(bLastLength)
- sRet.append(NEXTLINE);
+ sRet.append(SAL_NEWLINE_STRING);
bLastLength = true;
}
else if (sToken == u"FIRSTNAME")