kopia lustrzana https://gitlab.com/tomaszg/geostat
CPPCHECK: Add "explicit" to some constructors
rodzic
6bb23f4231
commit
74efb8fa89
2
debug.h
2
debug.h
|
@ -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
2
gpx.h
|
@ -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
2
heat.h
|
@ -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
2
ocdb.h
|
@ -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
|
||||
|
|
Ładowanie…
Reference in New Issue