From d7f9d229dfdf47030ab7cc79a3f59f96dd3b9053 Mon Sep 17 00:00:00 2001 From: Steven Murray <Steven.Murray@cern.ch> Date: Mon, 6 Jan 2020 11:01:28 +0100 Subject: [PATCH] Made return type of lambda explicit in order to help code inspect tools --- catalogue/OracleCatalogue.cpp | 2 +- catalogue/PostgresCatalogue.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/catalogue/OracleCatalogue.cpp b/catalogue/OracleCatalogue.cpp index fced1b8604..17f456def9 100644 --- a/catalogue/OracleCatalogue.cpp +++ b/catalogue/OracleCatalogue.cpp @@ -310,7 +310,7 @@ void OracleCatalogue::filesWrittenToTape(const std::set<TapeItemWrittenPointer> // allow checking fSeq coherency. // determine the number of files size_t filesCount=std::count_if(events.cbegin(), events.cend(), - [](const TapeItemWrittenPointer &e){return typeid(*e)==typeid(TapeFileWritten);}); + [](const TapeItemWrittenPointer &e) -> bool {return typeid(*e)==typeid(TapeFileWritten);}); TapeFileBatch tapeFileBatch(filesCount); std::set<TapeFileWritten> fileEvents; diff --git a/catalogue/PostgresCatalogue.cpp b/catalogue/PostgresCatalogue.cpp index 3a4579d2ad..f9d7bc4909 100644 --- a/catalogue/PostgresCatalogue.cpp +++ b/catalogue/PostgresCatalogue.cpp @@ -291,7 +291,7 @@ void PostgresCatalogue::filesWrittenToTape(const std::set<TapeItemWrittenPointer // allow checking fSeq coherency. // determine the number of files size_t filesCount=std::count_if(events.cbegin(), events.cend(), - [](const TapeItemWrittenPointer &e){return typeid(*e)==typeid(TapeFileWritten);}); + [](const TapeItemWrittenPointer &e) -> bool {return typeid(*e)==typeid(TapeFileWritten);}); TapeFileBatch tapeFileBatch(filesCount); std::set<TapeFileWritten> fileEvents; -- GitLab