diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-07-12 15:52:29 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-07-13 09:22:40 +0200 |
commit | 54a97eb9ddd66294f303189ca12ef726177453cb (patch) | |
tree | fc068c028f44ef859021bf4b1a66daa29491a20d /include/vcl/salctype.hxx | |
parent | 72f631977435a704008a55d3be6489ba619e3064 (diff) |
clang-tidy modernize-pass-by-value in vcl
Change-Id: I9ddb786eb88213c53cf53067ced6899ca40ac6e8
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/137000
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include/vcl/salctype.hxx')
-rw-r--r-- | include/vcl/salctype.hxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/vcl/salctype.hxx b/include/vcl/salctype.hxx index 71f256b1986e..c52128aef51d 100644 --- a/include/vcl/salctype.hxx +++ b/include/vcl/salctype.hxx @@ -22,6 +22,7 @@ #include <sal/config.h> +#include <utility> #include <vcl/graph.hxx> enum class ConvertDataFormat @@ -51,8 +52,8 @@ public: SvStream& mrStm; ConvertDataFormat mnFormat; - ConvertData( const Graphic& rGraphic, SvStream& rStm, ConvertDataFormat nFormat ) : - maGraphic( rGraphic ), mrStm( rStm ), mnFormat( nFormat ) {} + ConvertData( Graphic aGraphic, SvStream& rStm, ConvertDataFormat nFormat ) : + maGraphic(std::move( aGraphic )), mrStm( rStm ), mnFormat( nFormat ) {} }; typedef sal_uLong (*SALGRFCVTPROC)( void* pInst, |