From a6ad9f2d2b1ba7e7a9554cf39375dc7f4c81e38d Mon Sep 17 00:00:00 2001 From: eidheim Date: Mon, 3 Aug 2015 16:01:13 +0200 Subject: [PATCH] Minor fix: Added const to a std::function. --- src/notebook.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/notebook.cc b/src/notebook.cc index 3a39842..1ccbca7 100644 --- a/src/notebook.cc +++ b/src/notebook.cc @@ -113,7 +113,7 @@ void Notebook::open(std::string path) { } std::string Notebook::find_project_path(const std::string &path) { - auto find_cmake_project=[this](const boost::filesystem::path &path) { + const auto find_cmake_project=[this](const boost::filesystem::path &path) { auto cmake_path=path; cmake_path+="/CMakeLists.txt"; for(auto &line: juci::filesystem::read_lines(cmake_path)) {