diff --git a/src/cpp/fastdds/builtin/type_lookup_service/TypeLookupRequestListener.cpp b/src/cpp/fastdds/builtin/type_lookup_service/TypeLookupRequestListener.cpp index 06b92438284..a923bb7a64d 100644 --- a/src/cpp/fastdds/builtin/type_lookup_service/TypeLookupRequestListener.cpp +++ b/src/cpp/fastdds/builtin/type_lookup_service/TypeLookupRequestListener.cpp @@ -373,7 +373,9 @@ void TypeLookupRequestListener::answer_request( TypeLookup_getTypeDependencies_Out& out) { TypeLookup_Reply* reply = static_cast(typelookup_manager_->reply_type_.createData()); - reply->return_value().getTypeDependencies().result(out); + TypeLookup_getTypeDependencies_Result result; + result.result(out); + reply->return_value().getTypeDependencies(result); reply->header().relatedRequestId(request_id); reply->header().remoteEx(exception_code); @@ -387,7 +389,9 @@ void TypeLookupRequestListener::answer_request( TypeLookup_getTypes_Out& out) { TypeLookup_Reply* reply = static_cast(typelookup_manager_->reply_type_.createData()); - reply->return_value().getType().result(out); + TypeLookup_getTypes_Result result; + result.result(out); + reply->return_value().getType(result); reply->header().relatedRequestId(request_id); reply->header().remoteEx(exception_code);