From 0a7585403832c114fd2d084363aee98c3234058e Mon Sep 17 00:00:00 2001 From: Scott Kostyshak Date: Sat, 7 Sep 2024 23:45:51 +0200 Subject: [PATCH] Fix compiler warning Fixes the following warning: warning unqualified call to 'std::move' [-Werror,-Wunqualified-std-cast-call] --- 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 eeba7b86c3..8f348d4169 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()) ? move(label) : move(label) + " " + type; + string const arg = (type.empty()) ? std::move(label) : std::move(label) + " " + type; lyx::dispatch(FuncRequest(LFUN_REFERENCE_INSERT, arg)); break; } else { diff --git a/src/Encoding.cpp b/src/Encoding.cpp index 267298927f..d07fb60a13 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 = move(rem); + val = std::move(rem); continue; } // it's a command of some sort diff --git a/src/insets/InsetNomencl.cpp b/src/insets/InsetNomencl.cpp index 012ef4fc88..c62d9a1a62 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 = move(symbol); + symb = std::move(symbol); } } } -- 2.39.5