Add some more uint

master
Tomasz Golinski 2022-07-13 19:40:26 +02:00
rodzic 6de198b9c6
commit 5cc8291488
2 zmienionych plików z 4 dodań i 4 usunięć

Wyświetl plik

@ -44,7 +44,7 @@ PowertrailDB::~PowertrailDB() {
curl_easy_cleanup(curl);
}
void PowertrailDB::get_trail(int n) {
void PowertrailDB::get_trail(uint n) {
CURLcode curl_res;
std::smatch res;
@ -111,7 +111,7 @@ void PowertrailDB::read_from_json(std::string file) {
try {
json j;
datafile >> j;
data = j.get<std::unordered_map<int, Powertrail>>();
data = j.get<std::unordered_map<uint, Powertrail>>();
}
catch (...) {
Debug(1) << "Cache file: " << file << " corrupted.";

Wyświetl plik

@ -25,8 +25,8 @@ public:
class PowertrailDB {
public:
std::unordered_map<int, Powertrail> data;
void get_trail(int n);
std::unordered_map<uint, Powertrail> data;
void get_trail(uint n);
CURL* curl;
mutable std::string curl_output;