diff options
author | Alex Borisov <borisov.alexandr@rambler.ru> | 2011-10-26 19:11:40 +0300 |
---|---|---|
committer | Alex Borisov <borisov.alexandr@rambler.ru> | 2011-10-26 19:11:40 +0300 |
commit | 894b5d02a04d01ce486786d272c0328377b6ea38 (patch) | |
tree | 6a8998c89913cdd8f21ba8f053678e4e385058d1 /client/Config.cpp | |
parent | 3899450af16a0162aac8e91c5487c2a802c609d7 (diff) |
Checkboxes are working now
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) && |