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.
_______________________________________________
LibreOffice mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice