[core] Throw exceptions by value

This commit is contained in:
Konstantin Käfer
2017-05-05 14:11:11 +02:00
parent bf959b9d86
commit fd104dd3c2
3 changed files with 4 additions and 4 deletions

View File

@@ -4,7 +4,7 @@ namespace {
// Dummy initializer (We don't support initializing this from the JVM)
std::unique_ptr<mbgl::android::UnknownSource> init(jni::JNIEnv&) {
throw new std::runtime_error("UnknownSource should not be initialized from the JVM");
throw std::runtime_error("UnknownSource should not be initialized from the JVM");
}
} // namespace