[Libreoffice] Replacing ByteString with rtl::OString

Thorsten Behrens thb at documentfoundation.org
Thu Jun 9 23:40:38 PDT 2011


Chr. Rossmanith wrote:
> I encountered the problem that rtl::OString::valueOf() won't eat sal_Int16.
> 
> Solution A: cast argument
> Solution B: add support for sal_Int16 to rtl::OString::valueOf()
> 
Solution B would add ambiguities wrt. to valueOf( sal_Unicode c ),
and likely break (some) platforms. Kohei is right, just cast to
int32 instead.

Cheers,

-- Thorsten
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/libreoffice/attachments/20110610/6de654be/attachment.pgp>


More information about the LibreOffice mailing list