Skip to content

Commit

Permalink
Rename kUseCAPIUri to kPythonUseCAPIUri
Browse files Browse the repository at this point in the history
Summary: to make it consistent with other naming

Reviewed By: yoney

Differential Revision: D66393710

fbshipit-source-id: 26af1ec644c610ff09b25172b2ce6e93b5fae99a
  • Loading branch information
thedavekwon authored and facebook-github-bot committed Nov 23, 2024
1 parent 438f0e4 commit e5d44cf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion thrift/compiler/ast/uri.h
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ inline constexpr auto kPythonFlagsUri =
"facebook.com/thrift/annotation/python/Flags";
inline constexpr auto kPythonNameUri =
"facebook.com/thrift/annotation/python/Name";
inline constexpr auto kUseCAPIUri =
inline constexpr auto kPythonUseCAPIUri =
"facebook.com/thrift/annotation/python/UseCAPI";

// Hack:
Expand Down
2 changes: 1 addition & 1 deletion thrift/compiler/generate/t_mstch_python_capi_generator.cc
Original file line number Diff line number Diff line change
Expand Up @@ -571,7 +571,7 @@ class python_capi_mstch_struct : public mstch_struct {

mstch::node marshal_capi() {
const auto marshal_override =
struct_->find_structured_annotation_or_null(kUseCAPIUri);
struct_->find_structured_annotation_or_null(kPythonUseCAPIUri);
auto force_serialize = [marshal_override]() {
const auto serialize_field = marshal_override
? marshal_override->get_value_from_structured_annotation_or_null(
Expand Down

0 comments on commit e5d44cf

Please sign in to comment.