diff --git a/src/odr/internal/pdf/pdf_document_element.hpp b/src/odr/internal/pdf/pdf_document_element.hpp index 4b66b17f..2fee654f 100644 --- a/src/odr/internal/pdf/pdf_document_element.hpp +++ b/src/odr/internal/pdf/pdf_document_element.hpp @@ -209,7 +209,7 @@ class CodeRange { using reference = std::uint32_t; Iterator() = default; - Iterator(const char *position, std::size_t width) + Iterator(const char *position, const std::size_t width) : m_position{position}, m_width{width} {} std::uint32_t operator*() const { @@ -239,7 +239,7 @@ class CodeRange { std::size_t m_width{1}; }; - CodeRange(std::string_view codes, std::size_t width) + CodeRange(const std::string_view codes, const std::size_t width) : m_codes{codes}, m_width{width} {} // `data()` is used as a bounded byte range delimited by `end()`, not as a diff --git a/src/odr/internal/pdf/pdf_function.cpp b/src/odr/internal/pdf/pdf_function.cpp index a1b6216c..2aa4f530 100644 --- a/src/odr/internal/pdf/pdf_function.cpp +++ b/src/odr/internal/pdf/pdf_function.cpp @@ -46,7 +46,8 @@ double interpolate(const double x, const double a0, const double a1, class ExponentialFunction final : public Function { public: ExponentialFunction(std::vector domain, std::vector range, - std::vector c0, std::vector c1, double n) + std::vector c0, std::vector c1, + const double n) : Function(std::move(domain), std::move(range)), m_c0{std::move(c0)}, m_c1{std::move(c1)}, m_n{n} {} @@ -115,7 +116,8 @@ class StitchingFunction final : public Function { class SampledFunction final : public Function { public: SampledFunction(std::vector domain, std::vector range, - std::vector size, std::int32_t bits_per_sample, + std::vector size, + const std::int32_t bits_per_sample, std::vector encode, std::vector decode, std::string samples) : Function(std::move(domain), std::move(range)), m_size{std::move(size)},