From f3bd210ac7b054f837522a56b7bfbe247edc1500 Mon Sep 17 00:00:00 2001 From: Kevin Pedro Date: Tue, 12 Sep 2023 09:14:37 -0500 Subject: [PATCH] clearer empty case --- .../interface/SiStripApproximateClusterCollection.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DataFormats/SiStripCluster/interface/SiStripApproximateClusterCollection.h b/DataFormats/SiStripCluster/interface/SiStripApproximateClusterCollection.h index 90f355e43f33b..142706dfe4bda 100644 --- a/DataFormats/SiStripCluster/interface/SiStripApproximateClusterCollection.h +++ b/DataFormats/SiStripCluster/interface/SiStripApproximateClusterCollection.h @@ -90,7 +90,7 @@ class SiStripApproximateClusterCollection { void reserve(std::size_t dets, std::size_t clusters); Filler beginDet(unsigned int detId); - const_iterator begin() const { return const_iterator(clusters_.empty() ? nullptr : this); } + const_iterator begin() const { return clusters_.empty() ? end() : const_iterator(this); } const_iterator cbegin() const { return begin(); } const_iterator end() const { return const_iterator(); } const_iterator cend() const { return end(); }