Skip to content

Commit fca4e16

Browse files
committed
Don't shadow Box
1 parent 0a1d76a commit fca4e16

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎cpp2rust/converter/printer.cpp‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ std::string ToRustName(std::string name) {
113113

114114
std::string_view stem(name);
115115
stem = stem.substr(0, stem.find_last_not_of('_') + 1);
116-
if (stem == "Ptr" || stem == "Value") {
116+
if (stem == "Ptr" || stem == "Value" || stem == "Box") {
117117
name += '_';
118118
}
119119
return name;

0 commit comments

Comments
 (0)