Skip to content

Commit

Permalink
Handle nullability for classes
Browse files Browse the repository at this point in the history
  • Loading branch information
pepone committed Nov 1, 2024
1 parent bd05325 commit d49b53d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion cpp/src/ice2slice/Gen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -164,8 +164,13 @@ namespace
}
else if (auto interface = dynamic_pointer_cast<InterfaceDecl>(type))
{
// Proxys are always mapped to nullable types.
os << getUnqualified(interface, scope) << "Proxy?";
return os.str();
}
else if (ClassDeclPtr cl = dynamic_pointer_cast<ClassDecl>(type))
{
// Classes are always mapped to nullable types.
os << getUnqualified(cl, scope) << "?";
}
else if (ContainedPtr contained = dynamic_pointer_cast<Contained>(type))
{
Expand Down

0 comments on commit d49b53d

Please sign in to comment.