src: add some "explicit"; cleanups

This commit is contained in:
Markus F.X.J. Oberhumer
2023-07-16 07:37:31 +02:00
parent 707fb55625
commit 828f4a63bf
43 changed files with 238 additions and 201 deletions
+5 -6
View File
@@ -44,13 +44,10 @@
// to absolute addresses so that the buffer compresses better.
**************************************************************************/
class Filter {
class Filter final {
public:
Filter(int level) {
clevel = level;
init();
}
void init(int id = 0, unsigned addvalue = 0);
explicit Filter(int level) noexcept;
void init(int id = 0, unsigned addvalue = 0) noexcept;
bool filter(SPAN_0(byte) buf, unsigned buf_len);
void unfilter(SPAN_0(byte) buf, unsigned buf_len, bool verify_checksum = false);
@@ -103,6 +100,8 @@ class FilterImpl {
friend class Filter;
private:
explicit FilterImpl() noexcept DELETED_FUNCTION;
struct FilterEntry {
int id; // 0 .. 255
unsigned min_buf_len;