How to write pAttrList->add(XML_typeface, OString());
Caolán McNamara
caolan.mcnamara at collabora.com
Sat May 20 18:47:11 UTC 2023
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