summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJohn Firebaugh <john.firebaugh@gmail.com>2015-04-23 13:44:51 -0700
committerJohn Firebaugh <john.firebaugh@gmail.com>2015-04-28 14:32:25 -0400
commitb5b58086a8f27c4c1cc34274aa51a857ba8c16a8 (patch)
tree92386deb001cc9083ed391a7fabf1d67152bff9d /include
parent230027e5140a8aa3c6cb24ddf3f5aee20506ac8f (diff)
downloadqtlocation-mapboxgl-b5b58086a8f27c4c1cc34274aa51a857ba8c16a8.tar.gz
Combine update and triggerUpdate
Diffstat (limited to 'include')
-rw-r--r--include/mbgl/map/map.hpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/include/mbgl/map/map.hpp b/include/mbgl/map/map.hpp
index 31dc27492f..afa8567205 100644
--- a/include/mbgl/map/map.hpp
+++ b/include/mbgl/map/map.hpp
@@ -54,7 +54,7 @@ public:
void renderAsync();
// Notifies the Map thread that the state has changed and an update might be necessary.
- void update();
+ void update(Update update = Update::Nothing);
// Styling
void addClass(const std::string&);
@@ -137,8 +137,6 @@ public:
bool getDebug() const;
private:
- void triggerUpdate(Update update = Update::Nothing);
-
const std::unique_ptr<Environment> env;
std::unique_ptr<EnvironmentScope> scope;
const std::unique_ptr<MapData> data;