diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-07-20 09:51:36 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-07-21 08:59:50 +0200 |
commit | 85f4938719180e1e344b28c073f909df6f972f96 (patch) | |
tree | 21aa235575692503cf2a2d40f0e63b7aad661b9f /svx/source/diagram/datamodel.cxx | |
parent | cf69bb4f503eb8b3966d5caf825e0c05264a369e (diff) |
clang-tidy modernize-pass-by-value in svx
Change-Id: Iedd87d321f4d161574df87629fdd6c7714ff31c5
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/137248
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svx/source/diagram/datamodel.cxx')
-rw-r--r-- | svx/source/diagram/datamodel.cxx | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/svx/source/diagram/datamodel.cxx b/svx/source/diagram/datamodel.cxx index e45fe7fb4c3a..42677954bada 100644 --- a/svx/source/diagram/datamodel.cxx +++ b/svx/source/diagram/datamodel.cxx @@ -24,6 +24,7 @@ #include <svx/diagram/datamodel.hxx> #include <comphelper/xmltools.hxx> #include <sal/log.hxx> +#include <utility> namespace svx::diagram { @@ -141,9 +142,9 @@ bool DiagramData::removeNode(const OUString& rNodeId) return true; } -DiagramDataState::DiagramDataState(const Connections& rConnections, const Points& rPoints) -: maConnections(rConnections) -, maPoints(rPoints) +DiagramDataState::DiagramDataState(Connections aConnections, Points aPoints) +: maConnections(std::move(aConnections)) +, maPoints(std::move(aPoints)) { } |