Don't need to export helper function in common.h

sql-rework
Tomasz Golinski 2020-01-25 12:39:55 +01:00
rodzic 8672d9ca23
commit 113d639cda
2 zmienionych plików z 2 dodań i 4 usunięć

Wyświetl plik

@ -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);
}

Wyświetl plik

@ -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);