diff options
Diffstat (limited to 'client/Config.cpp')
-rw-r--r-- | client/Config.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/client/Config.cpp b/client/Config.cpp index 62318df..16c82ac 100644 --- a/client/Config.cpp +++ b/client/Config.cpp @@ -38,7 +38,7 @@ bool Config::IsConfigValid() vector<string> Config::GetCountries() { - vector<string> countries(genericProxy.size()); + vector<string> countries; for (unsigned i = 0; i < genericProxy.size(); i++) { countries.push_back(genericProxy[i].country); @@ -51,7 +51,7 @@ vector<string> Config::GetCountries() vector<string> Config::GetStates(std::string &country) { - vector<string> states(genericProxy.size()); + vector<string> states; for (unsigned i = 0; i < genericProxy.size(); i++) { if ((genericProxy[i].state != "-") && @@ -71,13 +71,14 @@ vector<string> Config::GetStates(std::string &country) vector<string> Config::GetCities(std::string &country) { + Logger::Trace("Getting cities in countre: %s", country.c_str()); string defState = "-"; - GetCities(country, defState); + return GetCities(country, defState); } vector<string> Config::GetCities(std::string &country, std::string &state) { - vector<string> cities(genericProxy.size()); + vector<string> cities; for (unsigned i = 0; i < genericProxy.size(); i++) { if ((genericProxy[i].state == state) && |