summaryrefslogtreecommitdiff
path: root/sw/source
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2019-10-01 11:51:03 +0200
committerStephan Bergmann <sbergman@redhat.com>2019-10-01 20:25:40 +0200
commite8b74f5777440559fc9702a9bddd32b9428972a3 (patch)
tree6d804bdacb0200c677f7b064e9df3e4958c77753 /sw/source
parent85312e64a35f1c0d0a51c268f4b044f45eebd39f (diff)
-Werror,-Wreturn-std-move (clang-cl)
Change-Id: I74d595e1480c421c5cad4095203270578acf9521 Reviewed-on: https://gerrit.libreoffice.org/79947 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'sw/source')
-rw-r--r--sw/source/core/doc/docbm.cxx6
1 files changed, 4 insertions, 2 deletions
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