kopia lustrzana https://gitlab.com/tomaszg/geostat
Don't need to export helper function in common.h
rodzic
8672d9ca23
commit
113d639cda
|
@ -53,11 +53,11 @@ void show_histogram(const Caches& cc, std::string Cache::*ptr, std::string capti
|
|||
}
|
||||
}
|
||||
|
||||
bool same_day(const std::tm& a, const std::tm& b) {
|
||||
static bool same_day(const std::tm& a, const std::tm& b) {
|
||||
return (a.tm_year == b.tm_year && a.tm_mon == b.tm_mon && a.tm_mday == b.tm_mday);
|
||||
}
|
||||
|
||||
void next_day(std::tm& a) {
|
||||
static void next_day(std::tm& a) {
|
||||
a.tm_mday++;
|
||||
mktime(&a);
|
||||
}
|
||||
|
|
2
common.h
2
common.h
|
@ -4,6 +4,4 @@
|
|||
|
||||
void show_histogram(const Caches& cc, std::string Cache::*ptr, std::string caption, bool html = 0, bool sort_by_val = 1);
|
||||
|
||||
bool same_day(const std::tm& a, const std::tm& b);
|
||||
void next_day(std::tm& a);
|
||||
int find_streak(const std::multimap<std::time_t, const Cache*>& cc, std::tm& start);
|
||||
|
|
Ładowanie…
Reference in New Issue