kopia lustrzana https://gitlab.com/tomaszg/geostat
Add some more uint
rodzic
6de198b9c6
commit
5cc8291488
|
@ -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.";
|
||||
|
|
|
@ -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;
|
||||
|
|
Ładowanie…
Reference in New Issue