]> git.lyx.org Git - lyx.git/commitdiff
Revert "Fix compiler warning"
authorJuergen Spitzmueller <spitz@lyx.org>
Sat, 14 Sep 2024 08:59:08 +0000 (10:59 +0200)
committerJuergen Spitzmueller <spitz@lyx.org>
Sat, 14 Sep 2024 08:59:08 +0000 (10:59 +0200)
This reverts commit 0a7585403832c114fd2d084363aee98c3234058e.

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

index 41bc6b5c6a71d11c75522bc58daf33c04232f12b..63833ba8cad3c458375b4f92b6c9c95e62909337 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()) ? 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 {
index d07fb60a138b7099f22ed003dbc822573edae132..267298927f8f96445be740d1083a901b2d0713c2 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 = std::move(rem);
+                       val = move(rem);
                        continue;
                }
                // it's a command of some sort
index 5095a068a937abbca7921288ec9c43189028e0a2..f853f1461956b4c052ad27dae7f85172cfc18e0a 100644 (file)
@@ -440,7 +440,7 @@ docstring nomenclWidest(Buffer const & buffer)
                                msymb.size();
                        if (wx > w) {
                                w = wx;
-                               symb = std::move(symbol);
+                               symb = move(symbol);
                        }
                }
        }