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