[Libreoffice-commits] core.git: sw/source
Stephan Bergmann (via logerrit)
logerrit at kemper.freedesktop.org
Tue Oct 1 18:26:55 UTC 2019
sw/source/core/doc/docbm.cxx | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
New commits:
commit e8b74f5777440559fc9702a9bddd32b9428972a3
Author: Stephan Bergmann <sbergman at redhat.com>
AuthorDate: Tue Oct 1 11:51:03 2019 +0200
Commit: Stephan Bergmann <sbergman at redhat.com>
CommitDate: Tue Oct 1 20:25:40 2019 +0200
-Werror,-Wreturn-std-move (clang-cl)
Change-Id: I74d595e1480c421c5cad4095203270578acf9521
Reviewed-on: https://gerrit.libreoffice.org/79947
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman at redhat.com>
diff --git a/sw/source/core/doc/docbm.cxx b/sw/source/core/doc/docbm.cxx
index deb1048da936..0d4e4d321863 100644
--- a/sw/source/core/doc/docbm.cxx
+++ b/sw/source/core/doc/docbm.cxx
@@ -18,6 +18,8 @@
*/
#include <memory>
+#include <utility>
+
#include <MarkManager.hxx>
#include <bookmrk.hxx>
#include <cntfrm.hxx>
@@ -408,7 +410,7 @@ namespace
{
if(*ppCurrentMark == pMarkToFind)
{
- return ppCurrentMark;
+ return std::move(ppCurrentMark);
}
++ppCurrentMark;
}
@@ -435,7 +437,7 @@ namespace
break;
if(IDocumentMarkAccess::GetType(**ppCurrentMark) == eType)
{
- return ppCurrentMark;
+ return std::move(ppCurrentMark);
}
}
// reached a mark starting on a later start pos or the end of the
More information about the Libreoffice-commits
mailing list