Kaydet (Commit) b11f257d authored tarafından Tor Lillqvist's avatar Tor Lillqvist

Test _WIN32 instead of UNX as it's Win32 that is the special case here

Change-Id: Ic729eab62109d854122fa5c6b7b4dc163088dd04
üst 610681b9
...@@ -51,11 +51,7 @@ struct SVT_DLLPUBLIC HTMLOutContext ...@@ -51,11 +51,7 @@ struct SVT_DLLPUBLIC HTMLOutContext
struct HTMLOutFuncs struct HTMLOutFuncs
{ {
#if defined(UNX) static const sal_Char sNewLine[];
static const sal_Char sNewLine; // nur \012 oder \015
#else
static const sal_Char sNewLine[]; // \015\012
#endif
SVT_DLLPUBLIC static OString ConvertStringToHTML( const OUString& sSrc, SVT_DLLPUBLIC static OString ConvertStringToHTML( const OUString& sSrc,
rtl_TextEncoding eDestEnc = RTL_TEXTENCODING_MS_1252, rtl_TextEncoding eDestEnc = RTL_TEXTENCODING_MS_1252,
......
...@@ -33,11 +33,7 @@ class SvStream; ...@@ -33,11 +33,7 @@ class SvStream;
class SVT_DLLPUBLIC RTFOutFuncs class SVT_DLLPUBLIC RTFOutFuncs
{ {
public: public:
#if defined(UNX) static const sal_Char sNewLine[];
static const sal_Char sNewLine; // nur \012 oder \015
#else
static const sal_Char sNewLine[]; // \015\012
#endif
static SvStream& Out_Char( SvStream&, sal_Unicode cChar, static SvStream& Out_Char( SvStream&, sal_Unicode cChar,
int *pUCMode, int *pUCMode,
......
...@@ -31,10 +31,10 @@ ...@@ -31,10 +31,10 @@
#include <svtools/imappoly.hxx> #include <svtools/imappoly.hxx>
#include "svl/urihelper.hxx" #include "svl/urihelper.hxx"
#if defined(UNX) #ifdef _WIN32
const sal_Char HTMLOutFuncs::sNewLine = '\012';
#else
const sal_Char HTMLOutFuncs::sNewLine[] = "\015\012"; const sal_Char HTMLOutFuncs::sNewLine[] = "\015\012";
#else
const sal_Char HTMLOutFuncs::sNewLine[] = "\012";
#endif #endif
#define TXTCONV_BUFFER_SIZE 20 #define TXTCONV_BUFFER_SIZE 20
......
...@@ -25,10 +25,10 @@ ...@@ -25,10 +25,10 @@
#include <svtools/rtfout.hxx> #include <svtools/rtfout.hxx>
#if defined(UNX) #ifdef _WIN32
const sal_Char RTFOutFuncs::sNewLine = '\012';
#else
const sal_Char RTFOutFuncs::sNewLine[] = "\015\012"; const sal_Char RTFOutFuncs::sNewLine[] = "\015\012";
#else
const sal_Char RTFOutFuncs::sNewLine[] = "\012";
#endif #endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment