summaryrefslogtreecommitdiff
path: root/src/ipa/libipa/histogram.cpp
diff options
context:
space:
mode:
authorJean-Michel Hautbois <jeanmichel.hautbois@ideasonboard.com>2022-02-24 12:33:45 +0100
committerJean-Michel Hautbois <jeanmichel.hautbois@ideasonboard.com>2022-03-28 12:31:37 +0200
commit88c69f88089ba7f9ec8c25aa9f084e1143ad9f29 (patch)
treeadc7cc1234f3c68fddd725f9c91ad7dc6ba1e956 /src/ipa/libipa/histogram.cpp
parent13c1e48e8ec6bce55585f042c695e47f2873c58c (diff)
ipa: libipa: Histogram: Constify the constructor span
The Histogram constructor does not modify the data. Pass it a Span<const uint32_t> instead of a Span<uint32_t>. Signed-off-by: Jean-Michel Hautbois <jeanmichel.hautbois@ideasonboard.com> Reviewed-by: Umang Jain <umang.jain@ideasonboard.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Diffstat (limited to 'src/ipa/libipa/histogram.cpp')
-rw-r--r--src/ipa/libipa/histogram.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ipa/libipa/histogram.cpp b/src/ipa/libipa/histogram.cpp
index 4d94571f..d8ad1c89 100644
--- a/src/ipa/libipa/histogram.cpp
+++ b/src/ipa/libipa/histogram.cpp
@@ -32,7 +32,7 @@ namespace ipa {
* \brief Create a cumulative histogram
* \param[in] data A pre-sorted histogram to be passed
*/
-Histogram::Histogram(Span<uint32_t> data)
+Histogram::Histogram(Span<const uint32_t> data)
{
cumulative_.reserve(data.size());
cumulative_.push_back(0);