refactor apt/dnf repo

This commit is contained in:
Paulchen-Panther
2023-10-15 18:31:50 +02:00
parent 88c6bef9be
commit b6c2e0cc0e
55 changed files with 1298 additions and 854 deletions

View File

@@ -555,7 +555,7 @@ namespace hyperion
if (pixelNum > 0)
{
// initial cluster with different colors
auto clusters = std::unique_ptr< ColorCluster<ColorRgbScalar> >(new ColorCluster<ColorRgbScalar>[_clusterCount]);
std::unique_ptr<ColorCluster<ColorRgbScalar>[]> clusters(new ColorCluster<ColorRgbScalar>[_clusterCount]);
for(int k = 0; k < _clusterCount; ++k)
{
clusters.get()[k].newColor = DEFAULT_CLUSTER_COLORS[k];