summaryrefslogtreecommitdiff
path: root/sc/source/ui/unoobj/textuno.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sc/source/ui/unoobj/textuno.cxx')
-rw-r--r--sc/source/ui/unoobj/textuno.cxx9
1 files changed, 5 insertions, 4 deletions
diff --git a/sc/source/ui/unoobj/textuno.cxx b/sc/source/ui/unoobj/textuno.cxx
index e0098476c04f..ec66ebe1877e 100644
--- a/sc/source/ui/unoobj/textuno.cxx
+++ b/sc/source/ui/unoobj/textuno.cxx
@@ -31,6 +31,7 @@
#include <editeng/fhgtitem.hxx>
#include <editeng/unoprnms.hxx>
#include <editeng/unofored.hxx>
+#include <utility>
#include <vcl/svapp.hxx>
#include <editeng/unoipset.hxx>
@@ -157,9 +158,9 @@ void ScHeaderFooterContentObj::Init( const EditTextObject* pLeft,
}
ScHeaderFooterTextData::ScHeaderFooterTextData(
- uno::WeakReference<sheet::XHeaderFooterContent> const & xContent, ScHeaderFooterPart nP, const EditTextObject* pTextObj) :
+ uno::WeakReference<sheet::XHeaderFooterContent> xContent, ScHeaderFooterPart nP, const EditTextObject* pTextObj) :
mpTextObj(pTextObj ? pTextObj->Clone() : nullptr),
- xContentObj( xContent ),
+ xContentObj(std::move( xContent )),
nPart( nP ),
bDataValid(false)
{
@@ -634,10 +635,10 @@ uno::Reference<text::XTextRange> SAL_CALL ScHeaderFooterTextCursor::getEnd()
UNO3_GETIMPLEMENTATION2_IMPL(ScHeaderFooterTextCursor, SvxUnoTextCursor);
-ScDrawTextCursor::ScDrawTextCursor( const uno::Reference<text::XText>& xParent,
+ScDrawTextCursor::ScDrawTextCursor( uno::Reference<text::XText> xParent,
const SvxUnoTextBase& rText ) :
SvxUnoTextCursor( rText ),
- xParentText( xParent )
+ xParentText(std::move( xParent ))
{
}