diff options
author | Regina Pfeifer <regina@mailbox.org> | 2019-01-21 16:15:21 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2019-01-22 18:03:04 (GMT) |
commit | 5a0784ddea62ee653a3a1199d4ff2140868d2c1d (patch) | |
tree | 0cbdb3658d8d5a270be900ddb829a4afe5cb4b32 /Source/CursesDialog | |
parent | bcc9ea2b3d9cd3b882dbb2a23502b0392cb21d1b (diff) | |
download | CMake-5a0784ddea62ee653a3a1199d4ff2140868d2c1d.zip CMake-5a0784ddea62ee653a3a1199d4ff2140868d2c1d.tar.gz CMake-5a0784ddea62ee653a3a1199d4ff2140868d2c1d.tar.bz2 |
clang-tidy: Pass by value
Diffstat (limited to 'Source/CursesDialog')
-rw-r--r-- | Source/CursesDialog/cmCursesMainForm.cxx | 5 | ||||
-rw-r--r-- | Source/CursesDialog/cmCursesMainForm.h | 2 |
2 files changed, 4 insertions, 3 deletions
diff --git a/Source/CursesDialog/cmCursesMainForm.cxx b/Source/CursesDialog/cmCursesMainForm.cxx index 55ef375..188ad69 100644 --- a/Source/CursesDialog/cmCursesMainForm.cxx +++ b/Source/CursesDialog/cmCursesMainForm.cxx @@ -20,15 +20,16 @@ #include <algorithm> #include <stdio.h> #include <string.h> +#include <utility> inline int ctrl(int z) { return (z & 037); } -cmCursesMainForm::cmCursesMainForm(std::vector<std::string> const& args, +cmCursesMainForm::cmCursesMainForm(std::vector<std::string> args, int initWidth) - : Args(args) + : Args(std::move(args)) , InitialWidth(initWidth) { this->NumberOfPages = 0; diff --git a/Source/CursesDialog/cmCursesMainForm.h b/Source/CursesDialog/cmCursesMainForm.h index 2c006cf..824025b 100644 --- a/Source/CursesDialog/cmCursesMainForm.h +++ b/Source/CursesDialog/cmCursesMainForm.h @@ -26,7 +26,7 @@ class cmCursesMainForm : public cmCursesForm CM_DISABLE_COPY(cmCursesMainForm) public: - cmCursesMainForm(std::vector<std::string> const& args, int initwidth); + cmCursesMainForm(std::vector<std::string> args, int initwidth); ~cmCursesMainForm() override; /** |