Kaydet (Commit) ade5624f authored tarafından Stephan Bergmann's avatar Stephan Bergmann

All INetMIMEOutputSink instances use same fixed ctor arg values

Change-Id: I49126732be307b80270843c147d9cce4b3fdd2a3
üst bfff96fe
...@@ -88,8 +88,6 @@ typedef std::unordered_map<OString, INetContentTypeParameter, OStringHash> ...@@ -88,8 +88,6 @@ typedef std::unordered_map<OString, INetContentTypeParameter, OStringHash>
class TOOLS_DLLPUBLIC INetMIME class TOOLS_DLLPUBLIC INetMIME
{ {
public: public:
enum { SOFT_LINE_LENGTH_LIMIT = 76 };
/** The various types of message header field bodies, with respect to /** The various types of message header field bodies, with respect to
encoding and decoding them. encoding and decoding them.
...@@ -666,10 +664,8 @@ private: ...@@ -666,10 +664,8 @@ private:
const sal_Unicode * pEnd); const sal_Unicode * pEnd);
public: public:
INetMIMEOutputSink( INetMIMEOutputSink():
sal_uInt32 nTheColumn = 0, m_nColumn(0), m_nLineLengthLimit(NO_LINE_LENGTH_LIMIT) {}
sal_uInt32 nTheLineLengthLimit= INetMIME::SOFT_LINE_LENGTH_LIMIT):
m_nColumn(nTheColumn), m_nLineLengthLimit(nTheLineLengthLimit) {}
/** Get the current column. /** Get the current column.
......
...@@ -861,8 +861,7 @@ sal_Unicode const * INetMIME::scanParameters(sal_Unicode const * pBegin, ...@@ -861,8 +861,7 @@ sal_Unicode const * INetMIME::scanParameters(sal_Unicode const * pBegin,
} }
if (pParameters) if (pParameters)
{ {
INetMIMEOutputSink INetMIMEOutputSink aSink;
aSink(0, INetMIMEOutputSink::NO_LINE_LENGTH_LIMIT);
while (p != pEnd) while (p != pEnd)
{ {
sal_uInt32 nChar = INetMIME::getUTF32Character(p, pEnd); sal_uInt32 nChar = INetMIME::getUTF32Character(p, pEnd);
...@@ -890,8 +889,7 @@ sal_Unicode const * INetMIME::scanParameters(sal_Unicode const * pBegin, ...@@ -890,8 +889,7 @@ sal_Unicode const * INetMIME::scanParameters(sal_Unicode const * pBegin,
else if (p != pEnd && *p == '"') else if (p != pEnd && *p == '"')
if (pParameters) if (pParameters)
{ {
INetMIMEOutputSink INetMIMEOutputSink aSink;
aSink(0, INetMIMEOutputSink::NO_LINE_LENGTH_LIMIT);
bool bInvalid = false; bool bInvalid = false;
for (++p;;) for (++p;;)
{ {
......
...@@ -46,7 +46,7 @@ void INetMIMEMessage::SetHeaderField_Impl ( ...@@ -46,7 +46,7 @@ void INetMIMEMessage::SetHeaderField_Impl (
const OUString &rValue, const OUString &rValue,
sal_uIntPtr &rnIndex) sal_uIntPtr &rnIndex)
{ {
INetMIMEOutputSink aSink(0, INetMIMEOutputSink::NO_LINE_LENGTH_LIMIT); INetMIMEOutputSink aSink;
INetMIME::writeHeaderFieldBody ( INetMIME::writeHeaderFieldBody (
aSink, eType, rValue, osl_getThreadTextEncoding(), false); aSink, eType, rValue, osl_getThreadTextEncoding(), false);
SetHeaderField_Impl ( SetHeaderField_Impl (
......
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