diff options
author | Tor Lillqvist <tml@collabora.com> | 2013-10-13 13:45:17 +0300 |
---|---|---|
committer | Tor Lillqvist <tml@collabora.com> | 2013-10-13 13:49:24 +0300 |
commit | 6954aad4e5c99ce193d3dd60a43f6d41d7c0a87f (patch) | |
tree | ffba0bee05b37a70311ae198281f420600e30127 /include/svtools | |
parent | 8ede32d15735b78e3528107bfbcfb69e3beb7439 (diff) |
Reduce copypasta: Introduce SAL_NEWLINE_STRING and use it
Contains the platform-dependent on-disk line separator ("\r\n" for Windows,
"\n" otherwise, and yes, I assume an ASCII-based world).
Use it instead of static constant char array fields, with ifdeffed
initialisations, in various classes here and there.
Change-Id: Ibea1f2cc1acfb8cc067c3892a41f73bf44f2c78a
Diffstat (limited to 'include/svtools')
-rw-r--r-- | include/svtools/htmlout.hxx | 2 | ||||
-rw-r--r-- | include/svtools/rtfout.hxx | 2 |
2 files changed, 0 insertions, 4 deletions
diff --git a/include/svtools/htmlout.hxx b/include/svtools/htmlout.hxx index 9b0c8fddce9b..cdb1c935f8be 100644 --- a/include/svtools/htmlout.hxx +++ b/include/svtools/htmlout.hxx @@ -51,8 +51,6 @@ struct SVT_DLLPUBLIC HTMLOutContext struct HTMLOutFuncs { - static const sal_Char sNewLine[]; - SVT_DLLPUBLIC static OString ConvertStringToHTML( const OUString& sSrc, rtl_TextEncoding eDestEnc = RTL_TEXTENCODING_MS_1252, OUString *pNonConvertableChars = 0 ); diff --git a/include/svtools/rtfout.hxx b/include/svtools/rtfout.hxx index 7c38947f3448..6055e5cb6647 100644 --- a/include/svtools/rtfout.hxx +++ b/include/svtools/rtfout.hxx @@ -33,8 +33,6 @@ class SvStream; class SVT_DLLPUBLIC RTFOutFuncs { public: - static const sal_Char sNewLine[]; - static SvStream& Out_Char( SvStream&, sal_Unicode cChar, int *pUCMode, rtl_TextEncoding eDestEnc = RTL_TEXTENCODING_MS_1252, |