diff --git a/xmloff/source/style/impastpl.cxx b/xmloff/source/style/impastpl.cxx index 5a54f78d0d04..3147edad34db 100644 --- a/xmloff/source/style/impastpl.cxx +++ b/xmloff/source/style/impastpl.cxx @@ -78,7 +78,7 @@ struct2string(void *data, result.append("{"); const typelib_CompoundTypeDescription *compoundType = - &((const typelib_StructTypeDescription*) type)->aBase; + &reinterpret_cast(type)->aBase; for (int i = 0; i < compoundType->nMembers; i++) {