[PATCH] fdo#39749: calc unit test writing
Markus Mohrhard
markus.mohrhard at googlemail.com
Tue Apr 3 22:46:11 PDT 2012
Hey,
> just to get a feeling for string treatment:
>
> Could this
>
> + m_pDoc->InsertTab(0,
> rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("Sheet1")));
> + m_pDoc->InsertTab(1,
> rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("Sheet2")));
>
> (now having Lubos' patch) be written as
>
> + m_pDoc->InsertTab(0, rtl::OUString("Sheet1"));
> + m_pDoc->InsertTab(1, rtl::OUString("Sheet2"));
>
It can be even written without the explicit rtl::OUString instance
because there is an implicit conversion.
More information about the LibreOffice
mailing list