Skip to content

Commit 30ac77b

Browse files
committed
Refactoring: pack optional linkifyText parameters in LinkifyTextOptions
1 parent 4e2b97b commit 30ac77b

6 files changed

Lines changed: 170 additions & 170 deletions

File tree

src/classdef.cpp

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1517,13 +1517,8 @@ void ClassDefImpl::writeTemplateSpec(OutputList &ol,const Definition *d,
15171517
{
15181518
Argument a = *it;
15191519
linkifyText(TextGeneratorOLImpl(ol), // out
1520-
d, // scope
1521-
getFileDef(), // fileScope
1522-
this, // self
1523-
a.type, // text
1524-
nullptr,
1525-
FALSE // autoBreak
1526-
);
1520+
a.type, // text
1521+
LinkifyTextOptions().setScope(d).setFileScope(getFileDef()).setSelf(this));
15271522
if (!a.name.isEmpty())
15281523
{
15291524
ol.docify(" ");
@@ -1544,13 +1539,8 @@ void ClassDefImpl::writeTemplateSpec(OutputList &ol,const Definition *d,
15441539
{
15451540
ol.docify("requires ");
15461541
linkifyText(TextGeneratorOLImpl(ol), // out
1547-
d, // scope
1548-
getFileDef(), // fileScope
1549-
this, // self
1550-
m_requiresClause, // text
1551-
nullptr,
1552-
FALSE // autoBreak
1553-
);
1542+
m_requiresClause, // text
1543+
LinkifyTextOptions().setScope(d).setFileScope(getFileDef()).setSelf(this));
15541544
ol.lineBreak();
15551545
}
15561546
ol.docify(type.lower()+" "+name);

0 commit comments

Comments
 (0)