Skip to content

Commit 7eaefbc

Browse files
Don't copy clusters when tallying
1 parent 5ed3bed commit 7eaefbc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/ScatterplotPlugin.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ ScatterplotPlugin::ScatterplotPlugin(const PluginFactory* factory) :
243243
// Check to set whether the number of data points comprised throughout all clusters is the same number
244244
// as the number of data points in the dataset we are trying to color
245245
int totalNumIndices = 0;
246-
for (Cluster cluster : candidateDataset->getClusters())
246+
for (const Cluster& cluster : candidateDataset->getClusters())
247247
{
248248
totalNumIndices += cluster.getIndices().size();
249249
}

0 commit comments

Comments
 (0)