Geolocation: avoid static init of BUrl

* Fixes #11290.
This commit is contained in:
Adrien Destugues 2014-09-27 19:17:23 +02:00
parent 7d9fed52ad
commit 1d38b7a86a
2 changed files with 2 additions and 3 deletions

View File

@ -22,7 +22,7 @@ public:
private:
BUrl fService;
static const BUrl kDefaultService;
static const char* kDefaultService;
};

View File

@ -140,5 +140,4 @@ BGeolocation::LocateSelf(float& latitude, float& longitude)
// FIXME switch to an openly available service that will actually work with the
// "standard" geolocation API. Openbmap has a few variations.
const BUrl BGeolocation::kDefaultService = BUrl(
"http://openbmap.org/api/json.php5");
const char* BGeolocation::kDefaultService = "http://openbmap.org/api/json.php5";