https://bugs.freedesktop.org/show_bug.cgi?id=38838

--- Comment #6 from David Tardon <[email protected]> 2012-04-01 22:09:21 PDT 
---
(In reply to comment #5)
> I'd like to work on this. Can it be assigned to me please?

I do not think this is a one-man task... Just pick a module (or just a bunch of
files) that still use String and try to replace it by rtl::OUString +
rtl::OUStringBuffer. Beware of "rippling" effects, .e.g., if you replace String
by rtl::OUString in a virtual function declaration, you will have to change all
the derived classes as well, otherwise overriding will be broken.

> Also, where can I
> see the versions that have already been fixed (ByteString), so that I have an
> example to guide me?

See https://wiki.documentfoundation.org/Development/String_Classes for (rough)
comparison of functions of both classes. The most important difference is that
String is mutable while rtl::OUString is not. For constructing a string piece
by piece, use rtl::OUStringBuffer and then call makeStringAndClear() to get
rtl::OUString.

There are also additional string functions in
comphelper/inc/comphelper/string.hxx .

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to