summaryrefslogtreecommitdiff
path: root/sdext/source/pdfimport/odf
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2022-06-24 15:56:32 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2022-06-24 18:24:19 +0200
commit6c28906ff6b3cc2fc306d927010cf730e7ef5fbc (patch)
tree1647a437937c7dfb791452fd5d2abc3d7a7d3485 /sdext/source/pdfimport/odf
parent1c57c295e86676d9cfe5aa72f55dbd5d24cc7930 (diff)
clang-tidy modernize-pass-by-value in sdext
Change-Id: Ieded279152946830b2619ac80c4a9639d616557a Reviewed-on: https://gerrit.libreoffice.org/c/core/+/136398 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sdext/source/pdfimport/odf')
-rw-r--r--sdext/source/pdfimport/odf/odfemitter.cxx7
1 files changed, 4 insertions, 3 deletions
diff --git a/sdext/source/pdfimport/odf/odfemitter.cxx b/sdext/source/pdfimport/odf/odfemitter.cxx
index e38e81fce917..71bc293aad23 100644
--- a/sdext/source/pdfimport/odf/odfemitter.cxx
+++ b/sdext/source/pdfimport/odf/odfemitter.cxx
@@ -25,6 +25,7 @@
#include <com/sun/star/io/XOutputStream.hpp>
#include <comphelper/stl_types.hxx>
+#include <utility>
using namespace com::sun::star;
@@ -41,7 +42,7 @@ private:
uno::Sequence<sal_Int8> m_aBuf;
public:
- explicit OdfEmitter( const uno::Reference<io::XOutputStream>& xOutput );
+ explicit OdfEmitter( uno::Reference<io::XOutputStream> xOutput );
virtual void beginTag( const char* pTag, const PropertyMap& rProperties ) override;
virtual void write( const OUString& rString ) override;
@@ -50,8 +51,8 @@ public:
}
-OdfEmitter::OdfEmitter( const uno::Reference<io::XOutputStream>& xOutput ) :
- m_xOutput( xOutput ),
+OdfEmitter::OdfEmitter( uno::Reference<io::XOutputStream> xOutput ) :
+ m_xOutput(std::move( xOutput )),
m_aLineFeed{ '\n' }
{
OSL_PRECOND(m_xOutput.is(), "OdfEmitter(): invalid output stream");