How to write pAttrList->add(XML_typeface, OString());

Regina Henschel rb.henschel at t-online.de
Sun May 21 12:21:43 UTC 2023


Hi Caolán,

thanks. The first option works.

Kind regards,
Regina

Caolán McNamara schrieb am 20.05.2023 um 20:47:
> On Sat, 2023-05-20 at 20:33 +0200, Regina Henschel wrote:
>> Hi all,
>>
>> linux_clang_dbgutil_64 does not like
>>
>> pAttrList->add(XML_typeface, OString());
>>
>> and says, that I have to use std::string_view instead of OString.
>> But I don't know how to write it.
> 
> I imagine
>   pAttrList->add(XML_typeface, "");
> or
>   pAttrList->add(XML_typeface, std::string_view());
> will work. First one is probably preferable.
> 



More information about the LibreOffice mailing list