Fix class variable definition order to silence compiler warnings with -Wall (-Wreorder)

This commit is contained in:
Adrian Frühwirth 2022-05-16 10:09:40 +02:00
parent 596c97bc8d
commit c4dec1cd15
2 changed files with 5 additions and 5 deletions

View File

@ -33,14 +33,14 @@ struct SignToMac {
// Maching type: extension or file command.
enum Type { Extension, FileCmd } type;
// Help strings (and count)
int help_len;
const char **helps;
// MAC creator and type.
const char *creator;
const char *mac;
// Help strings (and count)
int help_len;
const char **helps;
constexpr SignToMac(Type t, const char *c, const char *m, const char **hs, int hl)
: type{t}, creator{c}, mac{m}, help_len{hl}, helps{hs} {}
};

View File

@ -71,10 +71,10 @@ struct FileReader {
uint8_t *data; // Input data.
uint32_t file_size; // Total size of the file.
std::string filename; // Name of the file to read.
utils::RawDataStreamBuf stream_buf; // Stream buffer from raw data buffer.
std::istream stream; // Stream for reading data.
std::string filename; // Name of the file to read.
};