Fix typos

This commit is contained in:
Leith Bade
2014-11-20 20:23:38 +11:00
parent 4e3ae54062
commit bc72a3f79f
2 changed files with 2 additions and 2 deletions

View File

@@ -375,7 +375,7 @@ jlong JNICALL nativeGetDefaultTransitionDuration(JNIEnv* env, jobject obj, jlong
mbgl::Log::Debug(mbgl::Event::JNI, "nativeGetDefaultTransitionDuration");
assert(native_map_view_ptr != 0);
NativeMapView* native_map_view = reinterpret_cast<NativeMapView*>(native_map_view_ptr);
jlong ret = 0.0;
jlong ret = 0;
COFFEE_TRY_JNI(env, ret = native_map_view->getMap().getDefaultTransitionDuration());
return ret;
}

View File

@@ -440,7 +440,7 @@ void Map::setStyleJSON(std::string newStyleJSON, const std::string &base) {
style->setDefaultTransitionDuration(defaultTransitionDuration);
// set applied classes if theys were set while the style was loading
// set applied classes if they were set while the style was loading
appliedClassesMutex.lock();
util::ptr<std::vector<std::string>> classes = appliedClasses;
if (appliedClasses) {