From 3a1c8897b173474648f41c1a874bff1775e16161 Mon Sep 17 00:00:00 2001 From: Juergen Spitzmueller Date: Sat, 14 Sep 2024 10:59:08 +0200 Subject: [PATCH] Revert "Fix compiler warning" This reverts commit 0a7585403832c114fd2d084363aee98c3234058e. --- src/BufferView.cpp | 2 +- src/Encoding.cpp | 2 +- src/insets/InsetNomencl.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/BufferView.cpp b/src/BufferView.cpp index 41bc6b5c6a..63833ba8ca 100644 --- a/src/BufferView.cpp +++ b/src/BufferView.cpp @@ -1707,7 +1707,7 @@ void BufferView::dispatch(FuncRequest const & cmd, DispatchResult & dr) string label = dit.innerParagraph().getLabelForXRef(); if (!label.empty()) { // if the paragraph has a label, we refer to this - string const arg = (type.empty()) ? std::move(label) : std::move(label) + " " + type; + string const arg = (type.empty()) ? move(label) : move(label) + " " + type; lyx::dispatch(FuncRequest(LFUN_REFERENCE_INSERT, arg)); break; } else { diff --git a/src/Encoding.cpp b/src/Encoding.cpp index d07fb60a13..267298927f 100644 --- a/src/Encoding.cpp +++ b/src/Encoding.cpp @@ -798,7 +798,7 @@ docstring Encodings::convertLaTeXCommands(docstring const & str, bool const lite if (!cnvtd.empty()) { // it did, so we'll take that bit and proceed with what's left ret += cnvtd; - val = std::move(rem); + val = move(rem); continue; } // it's a command of some sort diff --git a/src/insets/InsetNomencl.cpp b/src/insets/InsetNomencl.cpp index 5095a068a9..f853f14619 100644 --- a/src/insets/InsetNomencl.cpp +++ b/src/insets/InsetNomencl.cpp @@ -440,7 +440,7 @@ docstring nomenclWidest(Buffer const & buffer) msymb.size(); if (wx > w) { w = wx; - symb = std::move(symbol); + symb = move(symbol); } } } -- 2.39.5