[all] Replace Result<T> with optional<T> plus out Error parameter

This commit is contained in:
John Firebaugh
2017-03-07 17:00:53 -08:00
parent 1c757cce34
commit d7227e13a7
36 changed files with 550 additions and 486 deletions

View File

@@ -23,7 +23,7 @@ namespace android {
env,
std::make_unique<mbgl::style::VectorSource>(
jni::Make<std::string>(env, sourceId),
*style::conversion::convert<variant<std::string, Tileset>>(Value(env, urlOrTileSet))
convertURLOrTileset(Value(env, urlOrTileSet))
)
) {
}