Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/odr/internal/pdf/pdf_document_element.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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
Expand Down
6 changes: 4 additions & 2 deletions src/odr/internal/pdf/pdf_function.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@ double interpolate(const double x, const double a0, const double a1,
class ExponentialFunction final : public Function {
public:
ExponentialFunction(std::vector<double> domain, std::vector<double> range,
std::vector<double> c0, std::vector<double> c1, double n)
std::vector<double> c0, std::vector<double> c1,
const double n)
: Function(std::move(domain), std::move(range)), m_c0{std::move(c0)},
m_c1{std::move(c1)}, m_n{n} {}

Expand Down Expand Up @@ -115,7 +116,8 @@ class StitchingFunction final : public Function {
class SampledFunction final : public Function {
public:
SampledFunction(std::vector<double> domain, std::vector<double> range,
std::vector<std::size_t> size, std::int32_t bits_per_sample,
std::vector<std::size_t> size,
const std::int32_t bits_per_sample,
std::vector<double> encode, std::vector<double> decode,
std::string samples)
: Function(std::move(domain), std::move(range)), m_size{std::move(size)},
Expand Down
Loading