summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cppcanvas/source/mtfrenderer/polypolyaction.cxx6
-rw-r--r--editeng/inc/editdoc.hxx2
-rw-r--r--editeng/source/editeng/editdoc.cxx4
-rw-r--r--sot/source/sdstor/stgdir.cxx3
-rw-r--r--sot/source/sdstor/stgdir.hxx2
5 files changed, 8 insertions, 9 deletions
diff --git a/cppcanvas/source/mtfrenderer/polypolyaction.cxx b/cppcanvas/source/mtfrenderer/polypolyaction.cxx
index 14ae52d8b2cf..7f499be1ebe0 100644
--- a/cppcanvas/source/mtfrenderer/polypolyaction.cxx
+++ b/cppcanvas/source/mtfrenderer/polypolyaction.cxx
@@ -227,7 +227,7 @@ namespace cppcanvas::internal
TexturedPolyPolyAction( const ::basegfx::B2DPolyPolygon& rPoly,
const CanvasSharedPtr& rCanvas,
const OutDevState& rState,
- rendering::Texture aTexture );
+ const rendering::Texture& rTexture );
virtual bool renderSubset( const ::basegfx::B2DHomMatrix& rTransformation,
const Subset& rSubset ) const override;
@@ -255,12 +255,12 @@ namespace cppcanvas::internal
TexturedPolyPolyAction::TexturedPolyPolyAction( const ::basegfx::B2DPolyPolygon& rPolyPoly,
const CanvasSharedPtr& rCanvas,
const OutDevState& rState,
- rendering::Texture aTexture ) :
+ const rendering::Texture& rTexture ) :
CachedPrimitiveBase( rCanvas, true ),
mxPolyPoly( ::basegfx::unotools::xPolyPolygonFromB2DPolyPolygon( rCanvas->getUNOCanvas()->getDevice(), rPolyPoly) ),
maBounds( ::basegfx::utils::getRange(rPolyPoly) ),
mpCanvas( rCanvas ),
- maTexture(std::move( aTexture ))
+ maTexture( rTexture )
{
tools::initRenderState(maState,rState);
}
diff --git a/editeng/inc/editdoc.hxx b/editeng/inc/editdoc.hxx
index 12532fde7e73..6ce00d05c40b 100644
--- a/editeng/inc/editdoc.hxx
+++ b/editeng/inc/editdoc.hxx
@@ -244,7 +244,7 @@ private:
public:
ContentNode( SfxItemPool& rItemPool );
- ContentNode( OUString aStr, ContentAttribs aContentAttribs );
+ ContentNode( const OUString& rStr, const ContentAttribs& rContentAttribs );
~ContentNode();
ContentNode(const ContentNode&) = delete;
ContentNode& operator=(const ContentNode&) = delete;
diff --git a/editeng/source/editeng/editdoc.cxx b/editeng/source/editeng/editdoc.cxx
index 7621f7c0cd3f..41a8cf20f1b8 100644
--- a/editeng/source/editeng/editdoc.cxx
+++ b/editeng/source/editeng/editdoc.cxx
@@ -1193,8 +1193,8 @@ ContentNode::ContentNode( SfxItemPool& rPool ) : aContentAttribs( rPool )
{
}
-ContentNode::ContentNode( OUString aStr, ContentAttribs _aContentAttribs ) :
- maString(std::move(aStr)), aContentAttribs(std::move(_aContentAttribs))
+ContentNode::ContentNode( const OUString& rStr, const ContentAttribs& rContentAttribs ) :
+ maString(rStr), aContentAttribs(rContentAttribs)
{
}
diff --git a/sot/source/sdstor/stgdir.cxx b/sot/source/sdstor/stgdir.cxx
index ee70d390542e..69ca094f370f 100644
--- a/sot/source/sdstor/stgdir.cxx
+++ b/sot/source/sdstor/stgdir.cxx
@@ -28,7 +28,6 @@
#include <sal/log.hxx>
#include <memory>
-#include <utility>
//////////////////////////// class StgDirEntry
@@ -53,7 +52,7 @@ StgDirEntry::StgDirEntry( const void* pBuffer, sal_uInt32 nBufferLen, sal_uInt64
InitMembers();
}
-StgDirEntry::StgDirEntry( StgEntry r ) : m_aEntry(std::move( r ))
+StgDirEntry::StgDirEntry( const StgEntry& r ) : m_aEntry( r )
{
InitMembers();
}
diff --git a/sot/source/sdstor/stgdir.hxx b/sot/source/sdstor/stgdir.hxx
index 5044dc48f313..3605c27ac03d 100644
--- a/sot/source/sdstor/stgdir.hxx
+++ b/sot/source/sdstor/stgdir.hxx
@@ -59,7 +59,7 @@ public:
bool m_bInvalid; // true: invalid entry
StgDirEntry(const void* pBuffer, sal_uInt32 nBufferLen,
sal_uInt64 nUnderlyingStreamSize, bool * pbOk);
- explicit StgDirEntry( StgEntry );
+ explicit StgDirEntry( const StgEntry& );
virtual ~StgDirEntry() override;
void Invalidate( bool ); // invalidate all open entries