remove void* parameter from platform::restart()
This commit is contained in:
@@ -69,12 +69,12 @@ void Map::moveBy(double dx, double dy, double duration) {
|
||||
|
||||
void Map::startPanning() {
|
||||
transform.startPanning();
|
||||
platform::restart(this);
|
||||
platform::restart();
|
||||
}
|
||||
|
||||
void Map::stopPanning() {
|
||||
transform.stopPanning();
|
||||
platform::restart(this);
|
||||
platform::restart();
|
||||
}
|
||||
|
||||
void Map::scaleBy(double ds, double cx, double cy, double duration) {
|
||||
@@ -89,12 +89,12 @@ void Map::scaleBy(double ds, double cx, double cy, double duration) {
|
||||
|
||||
void Map::startScaling() {
|
||||
transform.startScaling();
|
||||
platform::restart(this);
|
||||
platform::restart();
|
||||
}
|
||||
|
||||
void Map::stopScaling() {
|
||||
transform.stopScaling();
|
||||
platform::restart(this);
|
||||
platform::restart();
|
||||
}
|
||||
|
||||
void Map::rotateBy(double cx, double cy, double sx, double sy, double ex, double ey, double duration) {
|
||||
@@ -107,12 +107,12 @@ void Map::rotateBy(double cx, double cy, double sx, double sy, double ex, double
|
||||
|
||||
void Map::startRotating() {
|
||||
transform.startRotating();
|
||||
platform::restart(this);
|
||||
platform::restart();
|
||||
}
|
||||
|
||||
void Map::stopRotating() {
|
||||
transform.stopRotating();
|
||||
platform::restart(this);
|
||||
platform::restart();
|
||||
}
|
||||
|
||||
void Map::setLonLat(double lon, double lat, double duration) {
|
||||
@@ -233,7 +233,7 @@ void Map::cancelAnimations() {
|
||||
|
||||
void Map::update() {
|
||||
updateTiles();
|
||||
platform::restart(this);
|
||||
platform::restart();
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -83,8 +83,7 @@ void Tile::request() {
|
||||
fprintf(stderr, "tile loading failed\n");
|
||||
}
|
||||
}, []() {
|
||||
// TODO: Make sure this gets passed the correct map ID/pointer.
|
||||
platform::restart(nullptr);
|
||||
platform::restart();
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@@ -36,7 +36,7 @@ void Sprite::load(const std::string& base_url, float pixelRatio) {
|
||||
std::lock_guard<std::mutex> lock(sprite->mtx);
|
||||
if (sprite->img.size() && sprite->pos.size()) {
|
||||
sprite->loaded = true;
|
||||
platform::restart(NULL);
|
||||
platform::restart();
|
||||
fprintf(stderr, "sprite loaded\n");
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user