mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 01:59:02 +00:00
Avoid a couple of copies
Spotted by Coverity scan.
This commit is contained in:
parent
91f3f27545
commit
cc40330e00
@ -476,7 +476,7 @@ docstring InsetCitation::complexLabel(bool for_xhtml) const
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
string cite_type = getCmdName();
|
||||
bool const uppercase = isUpperCase(cite_type[0]);
|
||||
if (uppercase)
|
||||
@ -502,8 +502,6 @@ docstring InsetCitation::complexLabel(bool for_xhtml) const
|
||||
&& (keys.size() > 1
|
||||
|| !getParam("pretextlist").empty()
|
||||
|| !getParam("posttextlist").empty());
|
||||
QualifiedList pres = getQualifiedLists(getParam("pretextlist"));
|
||||
QualifiedList posts = getQualifiedLists(getParam("posttextlist"));
|
||||
|
||||
CiteItem ci;
|
||||
ci.textBefore = getParam("before");
|
||||
@ -512,8 +510,8 @@ docstring InsetCitation::complexLabel(bool for_xhtml) const
|
||||
ci.Starred = starred;
|
||||
ci.max_size = UINT_MAX;
|
||||
ci.isQualified = qualified;
|
||||
ci.pretexts = pres;
|
||||
ci.posttexts = posts;
|
||||
ci.pretexts = getQualifiedLists(getParam("pretextlist"));
|
||||
ci.posttexts = getQualifiedLists(getParam("posttextlist"));
|
||||
if (for_xhtml) {
|
||||
ci.max_key_size = UINT_MAX;
|
||||
ci.context = CiteItem::Export;
|
||||
|
Loading…
Reference in New Issue
Block a user