Skip to content

Commit d269b5a

Browse files
committed
Add missing explicit statement
1 parent de84ef8 commit d269b5a

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

Algorithm/test/StaticSequenceAllocator.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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);

Algorithm/test/pageparser.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

3737
struct ClusterData {

Algorithm/test/parser.cxx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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
3636
struct 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

0 commit comments

Comments
 (0)