.: sw/source

Miklos Vajna vmiklos at suse.cz
Thu Aug 9 02:44:16 PDT 2012


On Thu, Aug 09, 2012 at 11:36:50AM +0200, Michael Stahl <mstahl at 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. ;-)


More information about the LibreOffice mailing list