]> git.lyx.org Git - lyx.git/commitdiff
Fix compiler warning
authorScott Kostyshak <skostysh@lyx.org>
Sat, 7 Sep 2024 21:45:51 +0000 (23:45 +0200)
committerScott Kostyshak <skostysh@lyx.org>
Sat, 7 Sep 2024 21:45:51 +0000 (23:45 +0200)
Fixes the following warning:

  warning unqualified call to 'std::move' [-Werror,-Wunqualified-std-cast-call]

src/BufferView.cpp
src/Encoding.cpp
src/insets/InsetNomencl.cpp

index eeba7b86c3ded88ea8577339dc849d7324268e06..8f348d416977ea2b64c646b72609a7048acbef5d 100644 (file)
@@ -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 {
index 267298927f8f96445be740d1083a901b2d0713c2..d07fb60a138b7099f22ed003dbc822573edae132 100644 (file)
@@ -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
index 012ef4fc880f54ace1cd091d1d2dc842b794a3a9..c62d9a1a622e57a8585b76e8d4b02fb170244979 100644 (file)
@@ -440,7 +440,7 @@ docstring nomenclWidest(Buffer const & buffer)
                                msymb.size();
                        if (wx > w) {
                                w = wx;
-                               symb = move(symbol);
+                               symb = std::move(symbol);
                        }
                }
        }