On Thu, Aug 09, 2012 at 11:36:50AM +0200, Michael Stahl <mst...@redhat.com> wrote: > > - OUString sOut( rIn ); > > + OUStringBuffer sOut( rIn ); > > > if( bAllowCr ) > > - { > > - sal_Unicode* pStr = (sal_Unicode*)sOut.getStr(); > > - pStr[n] = (sal_Unicode)'\n'; > > - } > > + sOut[n] = '\n'; > > right: if you want to modify an OUString, use OUStringBuffer, that's why > it exists.
Thanks for the info, I don't remember where did I saw that, but if I see again, I'll correct it there as well. ;-) _______________________________________________ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice