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