On Thu, Aug 09, 2012 at 11:36:50AM +0200, Michael Stahl <mstahl@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. ;-)
Context
Privacy Policy |
Impressum (Legal Info) |
Copyright information: Unless otherwise specified, all text and images
on this website are licensed under the
Creative Commons Attribution-Share Alike 3.0 License.
This does not include the source code of LibreOffice, which is
licensed under the Mozilla Public License (
MPLv2).
"LibreOffice" and "The Document Foundation" are
registered trademarks of their corresponding registered owners or are
in actual use as trademarks in one or more countries. Their respective
logos and icons are also subject to international copyright laws. Use
thereof is explained in our
trademark policy.