CPPCHECK: Add "explicit" to some constructors

sql-rework
Tomasz Golinski 2020-02-11 16:55:36 +01:00
rodzic 6bb23f4231
commit 74efb8fa89
4 zmienionych plików z 4 dodań i 4 usunięć

Wyświetl plik

@ -10,7 +10,7 @@ private:
static int debug_level; // debug level set globally
public:
Debug(int n);
explicit Debug(int n);
~Debug();
// Copy constructor and assignment operators are deleted to prevent extra destructor and constructor calls when chaining << operator

2
gpx.h
Wyświetl plik

@ -16,7 +16,7 @@ private:
gpx::GPX* root;
public:
GPX(std::string path);
explicit GPX(std::string path);
~GPX();
Cache get_cache(std::string code);

2
heat.h
Wyświetl plik

@ -11,7 +11,7 @@ private:
const Map* mp;
public:
Heat(const Map* m);
explicit Heat(const Map* m);
void generate(std::string filename, Caches& points, int stamp_size, std::string theme = "soft");
void generate_path(std::string filename, const Date_Caches& sorted);

2
ocdb.h
Wyświetl plik

@ -26,7 +26,7 @@ private:
bool read_revision();
public:
OCdb(std::string db_file);
explicit OCdb(std::string db_file);
~OCdb();
bool init(std::string json_file); // read db dump