Skip to content
This repository has been archived by the owner on Oct 20, 2022. It is now read-only.

Commit

Permalink
Fix logic in default templates for friends to check for friend struct…
Browse files Browse the repository at this point in the history
…s in

addition to friend classes.
  • Loading branch information
brycelelbach committed Jun 5, 2021
1 parent e2083f2 commit 01329d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Doxybook/DefaultTemplates.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,7 @@ static std::string createTableForFriendLike(const std::string& title, const std:

ss << "| {% if existsIn(child, \"type\") %}{{child.type}} {% endif -%}\n";
ss << "| **[{{child.name}}]({{child.url}})**";
ss << "{% if child.type != \"class\" -%}\n";
ss << "{% if child.type != \"class\" and child.type != \"struct\" -%}\n";
ss << "({% for param in child.params -%}\n";
ss << "{{param.type}} {{param.name}}";
ss << "{% if existsIn(param, \"defval\") %} ={{param.defval}}{% endif -%}\n";
Expand Down

0 comments on commit 01329d7

Please # to comment.