Fixed some compilation warnings
This commit is contained in:
@@ -277,7 +277,7 @@ Artist::getClusterGroups(std::vector<ClusterType::pointer> clusterTypes, std::si
|
||||
Wt::Dbo::collection<Wt::Dbo::ptr<Cluster>> queryRes = query;
|
||||
|
||||
std::map<ClusterTypeId, std::vector<Cluster::pointer>> clustersByType;
|
||||
for (const Cluster::pointer& cluster : queryRes)
|
||||
for (Cluster::pointer cluster : queryRes)
|
||||
{
|
||||
if (clustersByType[cluster->getType()->getId()].size() < size)
|
||||
clustersByType[cluster->getType()->getId()].push_back(cluster);
|
||||
|
||||
@@ -94,7 +94,7 @@ Filters::showDialog()
|
||||
{
|
||||
const auto clusterType {ClusterType::find(LmsApp->getDbSession(), clusterTypesIds.results.front())};
|
||||
|
||||
for (const Cluster::pointer cluster : clusterType->getClusters())
|
||||
for (const Cluster::pointer& cluster : clusterType->getClusters())
|
||||
{
|
||||
if (std::find(std::cbegin(_clusterIds), std::cend(_clusterIds), cluster->getId()) == _clusterIds.end())
|
||||
valueCombo->addItem(Wt::WString::fromUTF8(cluster->getName()));
|
||||
|
||||
Reference in New Issue
Block a user