diff --git a/thrift/lib/thrift/detail/AnyPatch.h b/thrift/lib/thrift/detail/AnyPatch.h index ada5d7c85cb..4b53ec983f7 100644 --- a/thrift/lib/thrift/detail/AnyPatch.h +++ b/thrift/lib/thrift/detail/AnyPatch.h @@ -255,9 +255,6 @@ class AnyPatch : public BaseClearPatch> { void apply(type::AnyData& val) const { apply(val.toThrift()); } - // TODO(dokwon): Consider migrating it to be part of patch splitting when it - // is available. - /// Extracts the patch for the given patch type. template VPatch extractPatchAsIf() const { @@ -287,7 +284,7 @@ class AnyPatch : public BaseClearPatch> { } VPatch patch; - const type::Type type_ = type::Type::get(); + const type::Type& type_ = type::Type::get(); }; AnyPatchExtractionVisitor visitor; customVisit(visitor);