Skip to content

Commit

Permalink
Small fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
arobenko committed Jan 5, 2025
1 parent 8171bf3 commit 45f5048
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion lib/src/gen/Interface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,9 @@ class InterfaceImpl
[](auto& f)
{
bool result = f->prepare();
f->setReferenced();
if (result) {
f->setReferenced();
}
return result;
});
}
Expand Down
4 changes: 3 additions & 1 deletion lib/src/gen/Message.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,9 @@ class MessageImpl
[](auto& f)
{
bool result = f->prepare();
f->setReferenced();
if (result) {
f->setReferenced();
}
return result;
});
}
Expand Down

0 comments on commit 45f5048

Please sign in to comment.