Skip to content
Snippets Groups Projects
Commit d7f9d229 authored by Steven Murray's avatar Steven Murray
Browse files

Made return type of lambda explicit in order to help code inspect tools

parent 48714d03
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment