diff --git a/include/educelab/core/types/Mat.hpp b/include/educelab/core/types/Mat.hpp index 6875e16..25ebc7d 100644 --- a/include/educelab/core/types/Mat.hpp +++ b/include/educelab/core/types/Mat.hpp @@ -26,7 +26,7 @@ class Mat static constexpr std::size_t cols{Cols}; /** Default constructor */ - Mat() { vals_.fill(0); }; + Mat() { vals_.fill(0); } /** @brief Constructor with fill values */ template diff --git a/include/educelab/core/utils/String.hpp b/include/educelab/core/utils/String.hpp index 0b0d641..dda3b01 100644 --- a/include/educelab/core/utils/String.hpp +++ b/include/educelab/core/utils/String.hpp @@ -197,7 +197,7 @@ static auto split(std::string_view s, const Ds&... ds) // Split string std::vector tokens; std::string_view::size_type begin{0}; - for (const auto [end, size] : delimPos) { + for (const auto& [end, size] : delimPos) { // ignore nested delimiters if (end < begin) { continue;