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
|
static int debug_level; // debug level set globally
|
||||||
|
|
||||||
public:
|
public:
|
||||||
Debug(int n);
|
explicit Debug(int n);
|
||||||
~Debug();
|
~Debug();
|
||||||
|
|
||||||
// Copy constructor and assignment operators are deleted to prevent extra destructor and constructor calls when chaining << operator
|
// 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;
|
gpx::GPX* root;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
GPX(std::string path);
|
explicit GPX(std::string path);
|
||||||
~GPX();
|
~GPX();
|
||||||
|
|
||||||
Cache get_cache(std::string code);
|
Cache get_cache(std::string code);
|
||||||
|
|
2
heat.h
2
heat.h
|
@ -11,7 +11,7 @@ private:
|
||||||
const Map* mp;
|
const Map* mp;
|
||||||
|
|
||||||
public:
|
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(std::string filename, Caches& points, int stamp_size, std::string theme = "soft");
|
||||||
void generate_path(std::string filename, const Date_Caches& sorted);
|
void generate_path(std::string filename, const Date_Caches& sorted);
|
||||||
|
|
2
ocdb.h
2
ocdb.h
|
@ -26,7 +26,7 @@ private:
|
||||||
bool read_revision();
|
bool read_revision();
|
||||||
|
|
||||||
public:
|
public:
|
||||||
OCdb(std::string db_file);
|
explicit OCdb(std::string db_file);
|
||||||
~OCdb();
|
~OCdb();
|
||||||
|
|
||||||
bool init(std::string json_file); // read db dump
|
bool init(std::string json_file); // read db dump
|
||||||
|
|
Ładowanie…
Reference in New Issue