File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed
Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -147,7 +147,7 @@ struct StaticSequenceAllocator {
147147 StaticSequenceAllocator () = delete ;
148148
149149 template <typename ... Targs>
150- StaticSequenceAllocator (Targs... args)
150+ explicit StaticSequenceAllocator (Targs... args)
151151 {
152152 bufferSize = sequenceLength (args...);
153153 buffer = std::make_unique<value_type[]>(bufferSize);
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ struct PageHeader {
3131 uint32_t magic = 0x45474150 ;
3232 uint32_t pageid;
3333
34- PageHeader (uint32_t id) : pageid(id) {}
34+ explicit PageHeader (uint32_t id) : pageid(id) {}
3535};
3636
3737struct ClusterData {
Original file line number Diff line number Diff line change @@ -29,15 +29,15 @@ struct Header {
2929 unsigned identifier = 0xdeadbeef ;
3030 size_t payloadSize = 0 ;
3131
32- Header (size_t ps) : payloadSize(ps) {}
32+ explicit Header (size_t ps) : payloadSize(ps) {}
3333};
3434
3535// trailer test class
3636struct Trailer {
3737 unsigned identifier = 0xaaffee00 ;
3838 unsigned char flags = 0xaa ;
3939
40- Trailer (unsigned char f) : flags(f) {}
40+ explicit Trailer (unsigned char f) : flags(f) {}
4141};
4242
4343// trailer test class including payload size
You can’t perform that action at this time.
0 commit comments