summaryrefslogtreecommitdiffstats
path: root/Source/cmFileMonitor.h
diff options
context:
space:
mode:
authorDaniel Pfeifer <daniel@pfeifer-mail.de>2016-10-30 18:50:19 (GMT)
committerDaniel Pfeifer <daniel@pfeifer-mail.de>2016-10-30 18:50:19 (GMT)
commit5214bb354b508cafc859b4a05b4e5f8ed44767e0 (patch)
treefbf3447860426ec363b14e548b4fec709b6ea12d /Source/cmFileMonitor.h
parent602b78aa79f6d99e775fa0a84fb441156d192833 (diff)
downloadCMake-5214bb354b508cafc859b4a05b4e5f8ed44767e0.zip
CMake-5214bb354b508cafc859b4a05b4e5f8ed44767e0.tar.gz
CMake-5214bb354b508cafc859b4a05b4e5f8ed44767e0.tar.bz2
Avoid some copies
Diffstat (limited to 'Source/cmFileMonitor.h')
-rw-r--r--Source/cmFileMonitor.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmFileMonitor.h b/Source/cmFileMonitor.h
index e05f48d..48169b8 100644
--- a/Source/cmFileMonitor.h
+++ b/Source/cmFileMonitor.h
@@ -17,7 +17,7 @@ public:
~cmFileMonitor();
using Callback = std::function<void(const std::string&, int, int)>;
- void MonitorPaths(const std::vector<std::string>& paths, Callback cb);
+ void MonitorPaths(const std::vector<std::string>& paths, Callback const& cb);
void StopMonitoring();
std::vector<std::string> WatchedFiles() const;