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
+3 -3
View File
@@ -36,7 +36,7 @@ class Packer;
class UiPacker final {
public:
UiPacker(const Packer *p_);
explicit UiPacker(const Packer *p_);
public:
virtual ~UiPacker() noexcept;
@@ -84,14 +84,14 @@ public:
protected:
virtual void printInfo(int nl = 0);
const Packer *const p;
const Packer *const p; // reference
// callback
upx_callback_t cb = {};
// internal state
struct State;
State *s = nullptr;
OwningPointer(State) s = nullptr; // owner
// totals
static unsigned total_files;