[Libreoffice] Replacing ByteString with rtl::OString

Chr. Rossmanith ChrRossmanith at gmx.de
Tue Jun 28 13:15:46 PDT 2011


Hi,

seems that I have to adjust the search path for header files:

{LibreOffice3-root}/solver/350/unxlngi6.pro/inc/tools/stream.hxx:37:34: 
fatal error: sal/inc/rtl/string.hxx: Datei oder Verzeichnis nicht 
gefunden  (file or directory not found)

But I need a hint which Makefile I have to modify.

> 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.
Didn't expect that I could just assign a ByteString to an OString and 
therefore didn't try it...  :-)

Thank you,
Christina


More information about the LibreOffice mailing list