Any (class)

Dante Doménech dante19031999 at gmail.com
Sun Aug 8 14:08:12 UTC 2021


Hello. I'm trying to pass an argument through any (that's mandatory).
I was able to set the any value via:
 aArgs[2].setValue(m_pElementTree,Type(TypeClass::TypeClass_UNKNOWN,OUString(u"")));
But now I can't get it back.
Tried:
aArgs[2] >> pElementTree;
pElementTree = aArgs[2] .get<void*>()
pElementTree = aArgs[2] .get<SmMlElement*>()
And other's, but it will just give me:
error: no matching function for call to ‘cppu_detail_getUnoType(void**)’
         return cppu_detail_getUnoType(static_cast< T1 * >(0));
Can someone tell me how do I get my pointer back, please ?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice/attachments/20210808/90721378/attachment.htm>


More information about the LibreOffice mailing list