summaryrefslogtreecommitdiff
path: root/svl/source/misc
diff options
context:
space:
mode:
Diffstat (limited to 'svl/source/misc')
-rw-r--r--svl/source/misc/lockfilecommon.cxx5
-rw-r--r--svl/source/misc/strmadpt.cxx10
2 files changed, 8 insertions, 7 deletions
diff --git a/svl/source/misc/lockfilecommon.cxx b/svl/source/misc/lockfilecommon.cxx
index baed8636ecfb..982ce7ce02da 100644
--- a/svl/source/misc/lockfilecommon.cxx
+++ b/svl/source/misc/lockfilecommon.cxx
@@ -41,14 +41,15 @@
#include <salhelper/linkhelper.hxx>
#include <svl/lockfilecommon.hxx>
+#include <utility>
using namespace ::com::sun::star;
namespace svt {
-LockFileCommon::LockFileCommon(const OUString& aLockFileURL)
- : m_aURL(aLockFileURL)
+LockFileCommon::LockFileCommon(OUString aLockFileURL)
+ : m_aURL(std::move(aLockFileURL))
{
}
diff --git a/svl/source/misc/strmadpt.cxx b/svl/source/misc/strmadpt.cxx
index d99aae4687ce..7a755d924986 100644
--- a/svl/source/misc/strmadpt.cxx
+++ b/svl/source/misc/strmadpt.cxx
@@ -31,6 +31,7 @@
#include <osl/diagnose.h>
#include <svl/instrm.hxx>
#include <svl/outstrm.hxx>
+#include <utility>
using namespace com::sun::star;
@@ -313,8 +314,8 @@ void SvInputStream::SetSize(sal_uInt64)
SetError(ERRCODE_IO_NOTSUPPORTED);
}
-SvInputStream::SvInputStream( css::uno::Reference< css::io::XInputStream > const & rTheStream):
- m_xStream(rTheStream),
+SvInputStream::SvInputStream( css::uno::Reference< css::io::XInputStream > xTheStream):
+ m_xStream(std::move(xTheStream)),
m_nSeekedFrom(STREAM_SEEK_TO_END)
{
SetBufferSize(0);
@@ -408,9 +409,8 @@ void SvOutputStream::SetSize(sal_uInt64)
SetError(ERRCODE_IO_NOTSUPPORTED);
}
-SvOutputStream::SvOutputStream(uno::Reference< io::XOutputStream > const &
- rTheStream):
- m_xStream(rTheStream)
+SvOutputStream::SvOutputStream(uno::Reference< io::XOutputStream > xTheStream):
+ m_xStream(std::move(xTheStream))
{
SetBufferSize(0);
}