This is mainly to shut down coverity which nowadays nags on this.
I am not sure whether we really gain something in these cases.
string label = dit.innerParagraph().getLabelForXRef();
if (!label.empty()) {
// if the paragraph has a label, we refer to this
- string const arg = (type.empty()) ? label : label + " " + type;
+ string const arg = (type.empty()) ? move(label) : move(label) + " " + type;
lyx::dispatch(FuncRequest(LFUN_REFERENCE_INSERT, arg));
break;
} else {
if (!cnvtd.empty()) {
// it did, so we'll take that bit and proceed with what's left
ret += cnvtd;
- val = rem;
+ val = move(rem);
continue;
}
// it's a command of some sort
msymb.size();
if (wx > w) {
w = wx;
- symb = symbol;
+ symb = move(symbol);
}
}
}