summaryrefslogtreecommitdiffstats
path: root/Source/cmFileMonitor.cxx
diff options
context:
space:
mode:
authorDaniel Pfeifer <daniel@pfeifer-mail.de>2017-04-21 08:42:27 (GMT)
committerDaniel Pfeifer <daniel@pfeifer-mail.de>2017-04-21 08:50:25 (GMT)
commit73020305afea789519b42ae59a5940e1dbc26e1a (patch)
treec84eb52107e86f3bab4819e9bd94b8334861c443 /Source/cmFileMonitor.cxx
parentb432e933cb0b2b162149b7e3aeb6a37b00e78d5f (diff)
downloadCMake-73020305afea789519b42ae59a5940e1dbc26e1a.zip
CMake-73020305afea789519b42ae59a5940e1dbc26e1a.tar.gz
CMake-73020305afea789519b42ae59a5940e1dbc26e1a.tar.bz2
clang-tidy: avoid copy
Diffstat (limited to 'Source/cmFileMonitor.cxx')
-rw-r--r--Source/cmFileMonitor.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmFileMonitor.cxx b/Source/cmFileMonitor.cxx
index 9e66035..ed794c3 100644
--- a/Source/cmFileMonitor.cxx
+++ b/Source/cmFileMonitor.cxx
@@ -236,7 +236,7 @@ public:
cmFileMonitor::Callback cb)
: Parent(p)
, PathSegment(ps)
- , CbList({ cb })
+ , CbList({ std::move(cb) })
{
assert(p);
assert(!ps.empty());