[Libreoffice] Removal of rtl::O[U]String[Buffer]::operator sal_{char|Unicode} const *()

Stephan Bergmann sbergman at redhat.com
Tue Sep 27 12:21:45 PDT 2011


On 09/27/2011 09:07 PM, Caolán McNamara wrote:
> On Tue, 2011-09-27 at 21:00 +0200, Stephan Bergmann wrote:
>> introduce the operator [] replacements.
>
> Any reason, we make operator[] const ?, i.e. unassignable. plenty of
> code out there using operator[] to get a given index, and setCharAt to
> set it, which is kind of clumsy.

Ah right, the rtl::O[U]StringBuffer functions should be adapted accordingly.

(Note that my commits just broke various tinderboxes due to some GCCs 
apparently complaining about alleged ambiguities in a+=b when a is a 
tools String and b an rtl::OUString; fixing it right now.)

-Stephan


More information about the LibreOffice mailing list