replacing OUString::valueOf(static_cast<sal_Int32>) ??

Noel Grandin noelgrandin at gmail.com
Wed Jan 9 09:07:28 PST 2013


On Wed, Jan 9, 2013 at 6:45 PM, Michael Stahl <mstahl at redhat.com> wrote:

> better to add a new overloaded function, say valueOfInt, and have
>  overloads for all possible C++ integral types, all of which produce
> strings with numbers.  using that consistently would also solve the
> problem of accidentally calling valueOf(a_sal_uInt16) and getting
> surprising results.
>
>
Ha! I was just about to suggest the same thing!
And maybe then we can add
   valueOfBool
   valueOfChar
which will have the lovely effect of eliminating problems with UNO
datatypes.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/libreoffice/attachments/20130109/caccc79f/attachment.html>


More information about the LibreOffice mailing list