diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-11-10 11:41:02 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-11-13 07:13:48 +0100 |
commit | 508b60b7fd9270cdc5df8cbe5b733b4f6ea8575f (patch) | |
tree | 949dd5fd233ddcd19c055212786b575cd2a616db /include/tools | |
parent | 99872adcfbcee7bb2e6b2f35c05cb34bb8be76ee (diff) |
inline INetMIMEOutputSink
Change-Id: Id76cf021658936301dd6b9685cafe7ece7ffa228
Reviewed-on: https://gerrit.libreoffice.org/44589
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include/tools')
-rw-r--r-- | include/tools/inetmime.hxx | 60 |
1 files changed, 0 insertions, 60 deletions
diff --git a/include/tools/inetmime.hxx b/include/tools/inetmime.hxx index 75af8b41f1d3..11208eae50ef 100644 --- a/include/tools/inetmime.hxx +++ b/include/tools/inetmime.hxx @@ -240,66 +240,6 @@ inline sal_uInt32 INetMIME::getUTF32Character(const sal_Unicode *& rBegin, return *rBegin++; } -class INetMIMEOutputSink -{ -private: - OStringBuffer m_aBuffer; - - /** Write a sequence of octets. - - @param pBegin Points to the start of the sequence, must not be null. - - @param pEnd Points past the end of the sequence, must be >= pBegin. - */ - void writeSequence(const sal_Char * pBegin, const sal_Char * pEnd); - - /** Write a null terminated sequence of octets (without the terminating - null). - - @param pOctets A null terminated sequence of octets, must not be - null. - */ - void writeSequence(const sal_Char * pSequence); - -public: - - /** Write a single octet. - - @param nOctet Some octet. - - @return This instance. - */ - inline INetMIMEOutputSink & operator <<(sal_Char nOctet); - - /** Write a null terminated sequence of octets (without the terminating - null). - - @param pOctets A null terminated sequence of octets, must not be - null. - - @return This instance. - */ - inline INetMIMEOutputSink & operator <<(const sal_Char * pOctets); - - OString takeBuffer() - { - return m_aBuffer.makeStringAndClear(); - } -}; - - -inline INetMIMEOutputSink & INetMIMEOutputSink::operator <<(sal_Char nOctet) -{ - writeSequence(&nOctet, &nOctet + 1); - return *this; -} - -inline INetMIMEOutputSink & INetMIMEOutputSink::operator <<(const sal_Char * - pOctets) -{ - writeSequence(pOctets); - return *this; -} #endif |