diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-05-18 12:05:34 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-05-18 14:45:27 +0200 |
commit | 75918e709a6d0e2b94b5e4fd9c2eb248ef912e00 (patch) | |
tree | f5231910ba430165e4ce04dfb54bd4cf32c435a4 /unoidl/source/unoidl-read.cxx | |
parent | f8560e09006cec5cc6ef26ccbf4f21aa28c22ac3 (diff) |
clang-tidy modernize-pass-by-value in unoidl
Change-Id: Ibeb6aa656d6ed8b8ba78e800c9e28ba63ec0ec40
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/134521
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'unoidl/source/unoidl-read.cxx')
-rw-r--r-- | unoidl/source/unoidl-read.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/unoidl/source/unoidl-read.cxx b/unoidl/source/unoidl-read.cxx index 706fe7f3d64c..283c660ce974 100644 --- a/unoidl/source/unoidl-read.cxx +++ b/unoidl/source/unoidl-read.cxx @@ -143,8 +143,8 @@ struct Entity { enum class Written { NO, DECLARATION, DEFINITION }; explicit Entity( - rtl::Reference<unoidl::Entity> const & theEntity, bool theRelevant, Entity * theParent): - entity(theEntity), relevant(theRelevant), sorted(Sorted::NO), + rtl::Reference<unoidl::Entity> theEntity, bool theRelevant, Entity * theParent): + entity(std::move(theEntity)), relevant(theRelevant), sorted(Sorted::NO), written(Written::NO), parent(theParent) {} |