// Cf. com::sun::star::uno::Any move ctor in // include/com/sun/star/uno/Any.hxx: void moveInternals(uno_Any & from, uno_Any & to) {
uno_any_construct(&to, nullptr, nullptr, nullptr);
std::swap(from.pType, to.pType);
std::swap(from.pData, to.pData);
std::swap(from.pReserved, to.pReserved); if (to.pData == &from.pReserved) {
to.pData = &to.pReserved;
} // This leaves to.pData (where "to" is now VOID) dangling to somewhere (cf. // CONSTRUCT_EMPTY_ANY, cppu/source/uno/prim.hxx), but what's relevant is // only that it isn't a nullptr (as e.g. >>= -> uno_type_assignData -> // _assignData takes a null pSource to mean "construct a default value").
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.