mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 01:59:02 +00:00
Fix compiler warning
Fixes the following warning: warning unqualified call to 'std::move' [-Werror,-Wunqualified-std-cast-call]
This commit is contained in:
parent
d3123c16f7
commit
0a75854038
@ -1707,7 +1707,7 @@ void BufferView::dispatch(FuncRequest const & cmd, DispatchResult & dr)
|
|||||||
string label = dit.innerParagraph().getLabelForXRef();
|
string label = dit.innerParagraph().getLabelForXRef();
|
||||||
if (!label.empty()) {
|
if (!label.empty()) {
|
||||||
// if the paragraph has a label, we refer to this
|
// if the paragraph has a label, we refer to this
|
||||||
string const arg = (type.empty()) ? move(label) : move(label) + " " + type;
|
string const arg = (type.empty()) ? std::move(label) : std::move(label) + " " + type;
|
||||||
lyx::dispatch(FuncRequest(LFUN_REFERENCE_INSERT, arg));
|
lyx::dispatch(FuncRequest(LFUN_REFERENCE_INSERT, arg));
|
||||||
break;
|
break;
|
||||||
} else {
|
} else {
|
||||||
|
@ -798,7 +798,7 @@ docstring Encodings::convertLaTeXCommands(docstring const & str, bool const lite
|
|||||||
if (!cnvtd.empty()) {
|
if (!cnvtd.empty()) {
|
||||||
// it did, so we'll take that bit and proceed with what's left
|
// it did, so we'll take that bit and proceed with what's left
|
||||||
ret += cnvtd;
|
ret += cnvtd;
|
||||||
val = move(rem);
|
val = std::move(rem);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
// it's a command of some sort
|
// it's a command of some sort
|
||||||
|
@ -440,7 +440,7 @@ docstring nomenclWidest(Buffer const & buffer)
|
|||||||
msymb.size();
|
msymb.size();
|
||||||
if (wx > w) {
|
if (wx > w) {
|
||||||
w = wx;
|
w = wx;
|
||||||
symb = move(symbol);
|
symb = std::move(symbol);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user