Date: prev next · Thread: first prev next last
2011 Archives by date, by thread · List index


On Mon, 2011-06-27 at 23:42 +0200, Chr. Rossmanith wrote:
Hi,

the next problem: SvMemoryStream::ReadLine() isn't happy with argument 
of type "rtl::OString&"...

httprequest.cxx: In member function 'sal_Bool HttpRequest::Execute()':
httprequest.cxx:165:34: error: no matching function for call to 
'SvMemoryStream::ReadLine(rtl::OString&)'
tools/stream.hxx:447:15: note: candidate is: sal_Bool 
SvStream::ReadLine(ByteString&)

Any hints how to get over that hurdle?

Probably the best thing to do is to add a variant that take a OString,
e.g. Easiest thing for now is likely to just have a body of

SvStream::ReadLine( rtl::OString& rStr )
{
        ByteString aFoo;
        ret = ReadLine(aFoo);
        rStr = aFoo;
        return ret;
}

and get back to converting it fully over once all uses of it are gone.

C.


Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.