Fixed some compilation warnings

This commit is contained in:
emeric
2022-08-07 14:13:34 +02:00
parent 4e246ac0b6
commit b58b2de58d
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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);
+1 -1
View File
@@ -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()));