We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fa2bb15 commit 73f1d5bCopy full SHA for 73f1d5b
1 file changed
PWGLF/TableProducer/Strangeness/cascqaanalysis.cxx
@@ -199,8 +199,8 @@ struct Cascqaanalysis {
199
template <typename TAxisType>
200
static void setEventTypeAxisLabels(TAxisType* axis)
201
{
202
- const char* labels[3] = {"INEL", "INEL>0", "INEL>1"};
203
- for (int i = 0; i < 3; ++i) {
+ const char* labels[] = {"INEL", "INEL>0", "INEL>1"};
+ for (int i = 0; i < static_cast<int>(sizeof(labels) / sizeof(labels[0])); ++i) {
204
axis->SetBinLabel(i + 1, labels[i]);
205
}
206
0 commit comments