summaryrefslogtreecommitdiff
path: root/store
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2022-05-17 10:50:59 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2022-08-13 19:11:49 +0200
commit1743d74e87745a26043642a06dc8a57b1af29740 (patch)
tree86354c464ed2e51bf940b58333844c0ad0670d01 /store
parenta0b9a7e7f0d14d0f121e54cb8979074bc5dfbe38 (diff)
clang-tidy modernize-pass-by-value in various
Change-Id: Ie091b22bd77d4e1fbff46545bc86c12f1dbafcfe Reviewed-on: https://gerrit.libreoffice.org/c/core/+/138171 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'store')
-rw-r--r--store/source/storbase.hxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/store/source/storbase.hxx b/store/source/storbase.hxx
index 4963ee2ddcfb..feac0db96227 100644
--- a/store/source/storbase.hxx
+++ b/store/source/storbase.hxx
@@ -319,8 +319,8 @@ struct PageData
class Deallocate {
public:
- explicit Deallocate(rtl::Reference<Allocator> const & allocator):
- allocator_(allocator) {};
+ explicit Deallocate(rtl::Reference<Allocator> allocator):
+ allocator_(std::move(allocator)) {};
void operator ()(void * page) const { allocator_->deallocate(page); }
@@ -425,8 +425,8 @@ public:
return bool(m_xPage);
}
- explicit PageHolderObject (std::shared_ptr<PageData> const & rxPage = std::shared_ptr<PageData>())
- : m_xPage (rxPage)
+ explicit PageHolderObject (std::shared_ptr<PageData> xPage = std::shared_ptr<PageData>())
+ : m_xPage (std::move(xPage))
{}
void swap (PageHolderObject<T> & rhs)
@@ -547,8 +547,8 @@ protected:
/** Construction.
*/
- explicit OStorePageObject (std::shared_ptr<PageData> const & rxPage)
- : m_xPage (rxPage), m_bDirty (false)
+ explicit OStorePageObject (std::shared_ptr<PageData> rxPage)
+ : m_xPage (std::move(rxPage)), m_bDirty (false)
{}
/** Destruction.