mirror of
https://github.com/KingDuckZ/dindexer.git
synced 2025-08-19 15:39:46 +00:00
Warning fix on clang
This commit is contained in:
parent
a27b1ccec8
commit
3a2db550d2
12 changed files with 22 additions and 22 deletions
|
@ -110,7 +110,7 @@ namespace din {
|
|||
for (const auto& row : res) {
|
||||
retval.push_back(lexical_cast<uint32_t>(row[0]));
|
||||
}
|
||||
return std::move(retval);
|
||||
return retval;
|
||||
}
|
||||
|
||||
void DBSource::query_no_conditions (const ColumnList& parCols, boost::string_ref parTable, const std::vector<uint32_t>& parIDs, std::function<void(std::string&&)> parCallback) {
|
||||
|
|
|
@ -105,13 +105,13 @@ namespace din {
|
|||
std::vector<std::string> columns;
|
||||
columns.reserve(sizeof...(Details));
|
||||
|
||||
const std::array<M, sizeof...(Details)> details { Details... };
|
||||
const std::array<M, sizeof...(Details)> details { {Details...} };
|
||||
//AtFunc at_func = &SetDetailsMap::at;
|
||||
//std::generate(details.begin(), details.end(), columns.begin(), std::bind(at_func, &details_dic, std::placeholders::_1));
|
||||
for (auto detail : details) {
|
||||
columns.push_back(parDic.at(detail));
|
||||
}
|
||||
return std::move(columns);
|
||||
return columns;
|
||||
}
|
||||
} //namespace implem
|
||||
|
||||
|
@ -126,7 +126,7 @@ namespace din {
|
|||
FlatInsertIn2DList<ReturnType> flat_list(&list, sizeof...(D));
|
||||
FlatPushBackFunc pback_func = &FlatInsertIn2DList<ReturnType>::push_back;
|
||||
this->query_no_conditions(columns, "sets", parIDs, std::bind(pback_func, &flat_list, std::placeholders::_1));
|
||||
return std::move(list);
|
||||
return list;
|
||||
}
|
||||
|
||||
template <FileDetails... D>
|
||||
|
@ -140,7 +140,7 @@ namespace din {
|
|||
FlatInsertIn2DList<ReturnType> flat_list(&list, sizeof...(D));
|
||||
FlatPushBackFunc pback_func = &FlatInsertIn2DList<ReturnType>::push_back;
|
||||
this->query_files_in_dir(columns, parDir, parLevel, parSetID, std::bind(pback_func, &flat_list, std::placeholders::_1));
|
||||
return std::move(list);
|
||||
return list;
|
||||
}
|
||||
} //namespace din
|
||||
|
||||
|
|
|
@ -42,7 +42,7 @@ namespace din {
|
|||
boost::copy(row, infix_ostream_iterator<std::string>(oss, "\t"));
|
||||
result.push_back(oss.str());
|
||||
}
|
||||
return std::move(result);
|
||||
return result;
|
||||
}
|
||||
} //unnamed namespace
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue